当前位置: 首页>>代码示例>>Java>>正文


Java DetermineActionTask.execute方法代码示例

本文整理汇总了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;
}
 
开发者ID:wseemann,项目名称:ServeStream,代码行数:26,代码来源:UrlListFragment.java

示例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;
}
 
开发者ID:minstrelsy,项目名称:servestream,代码行数:26,代码来源:UrlListFragment.java

示例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();
   	}
   }
 
开发者ID:wseemann,项目名称:ServeStream,代码行数:13,代码来源:BrowseFragment.java

示例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();

}
 
开发者ID:abeluck,项目名称:radioplayer,代码行数:11,代码来源:RadioFragment.java


注:本文中的net.sourceforge.servestream.utils.DetermineActionTask.execute方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。