本文整理汇总了Java中net.sourceforge.servestream.utils.DetermineActionTask.execute方法的典型用法代码示例。如果您正苦于以下问题:Java DetermineActionTask.execute方法的具体用法?Java DetermineActionTask.execute怎么用?Java DetermineActionTask.execute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sourceforge.servestream.utils.DetermineActionTask
的用法示例。
在下文中一共展示了DetermineActionTask.execute方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: processUri
import net.sourceforge.servestream.utils.DetermineActionTask; //导入方法依赖的package包/类
private boolean processUri(String input) {
Uri uri = TransportFactory.getUri(input);
if (uri == null) {
return false;
}
UriBean uriBean = TransportFactory.findUri(mStreamdb, uri);
if (uriBean == null) {
uriBean = TransportFactory.getTransport(uri.getScheme()).createUri(uri);
AbsTransport transport = TransportFactory.getTransport(uriBean.getProtocol());
transport.setUri(uriBean);
if (mPreferences.getBoolean(PreferenceConstants.AUTOSAVE, true)) {
mStreamdb.saveUri(uriBean);
updateList();
}
}
showDialog(LOADING_DIALOG);
mDetermineActionTask = new DetermineActionTask(getActivity(), uriBean, this);
mDetermineActionTask.execute();
return true;
}
示例2: processUri
import net.sourceforge.servestream.utils.DetermineActionTask; //导入方法依赖的package包/类
private boolean processUri(String input) {
Uri uri = TransportFactory.getUri(input);
if (uri == null) {
return false;
}
UriBean uriBean = TransportFactory.findUri(mStreamdb, uri);
if (uriBean == null) {
uriBean = TransportFactory.getTransport(uri.getScheme()).createUri(uri);
AbsTransport transport = TransportFactory.getTransport(uriBean.getProtocol());
transport.setUri(uriBean);
if (mPreferences.getBoolean(PreferenceConstants.AUTOSAVE, true) && transport.shouldSave()) {
mStreamdb.saveUri(uriBean);
updateList();
}
}
showDialog(LOADING_DIALOG);
mDetermineActionTask = new DetermineActionTask(this.getActivity(), uriBean, this);
mDetermineActionTask.execute();
return true;
}
示例3: browseTo
import net.sourceforge.servestream.utils.DetermineActionTask; //导入方法依赖的package包/类
@SuppressLint("NewApi")
private void browseTo(UriBean uri) {
showDialog(LOADING_DIALOG);
DetermineActionTask determineActionTask = new DetermineActionTask(getActivity(), uri, this);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
determineActionTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
} else {
determineActionTask.execute();
}
}
示例4: onClick
import net.sourceforge.servestream.utils.DetermineActionTask; //导入方法依赖的package包/类
@Override
public void onClick(View v) {
Uri uri = TransportFactory.getUri("http://s6.voscast.com:7632");
UriBean uriBean = TransportFactory.getTransport(uri.getScheme()).createUri(uri);
AbsTransport transport = TransportFactory.getTransport(uriBean.getProtocol());
transport.setUri(uriBean);
mDetermineActionTask = new DetermineActionTask(getActivity(), uriBean, this);
mDetermineActionTask.execute();
}