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


Java AsyncTaskExecManager类代码示例

本文整理汇总了Java中com.google.zxing.client.android.common.executor.AsyncTaskExecManager的典型用法代码示例。如果您正苦于以下问题:Java AsyncTaskExecManager类的具体用法?Java AsyncTaskExecManager怎么用?Java AsyncTaskExecManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AsyncTaskExecManager类属于com.google.zxing.client.android.common.executor包,在下文中一共展示了AsyncTaskExecManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: maybeInvokeRetrieval

import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
public static void maybeInvokeRetrieval(TextView textView,
                                        ParsedResult result,
                                        HistoryManager historyManager,
                                        Context context) {
  AsyncTaskExecInterface taskExec = new AsyncTaskExecManager().build();
  if (result instanceof URIParsedResult) {
    taskExec.execute(new URIResultInfoRetriever(textView, (URIParsedResult) result, historyManager, context));
    taskExec.execute(new TitleRetriever(textView, (URIParsedResult) result, historyManager));
  } else if (result instanceof ProductParsedResult) {
    String productID = ((ProductParsedResult) result).getProductID();
    taskExec.execute(new ProductResultInfoRetriever(textView, productID, historyManager, context));
  } else if (result instanceof ISBNParsedResult) {
    String isbn = ((ISBNParsedResult) result).getISBN();
    taskExec.execute(new ProductResultInfoRetriever(textView, isbn, historyManager, context));
    taskExec.execute(new BookResultInfoRetriever(textView, isbn, historyManager, context));
  }
}
 
开发者ID:atomsheep,项目名称:sres-app,代码行数:18,代码来源:SupplementalInfoRetriever.java

示例2: maybeInvokeRetrieval

import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
public static void maybeInvokeRetrieval(TextView textView,
                                        ParsedResult result,
                                        HistoryManager historyManager,
                                        Context context) {
    AsyncTaskExecInterface taskExec = new AsyncTaskExecManager().build();
    if (result instanceof URIParsedResult) {
        taskExec.execute(new URIResultInfoRetriever(textView, (URIParsedResult) result, historyManager, context));
        taskExec.execute(new TitleRetriever(textView, (URIParsedResult) result, historyManager));
    } else if (result instanceof ProductParsedResult) {
        String productID = ((ProductParsedResult) result).getProductID();
        taskExec.execute(new ProductResultInfoRetriever(textView, productID, historyManager, context));
        switch (productID.length()) {
            case 12:
                taskExec.execute(new AmazonInfoRetriever(textView, "UPC", productID, historyManager, context));
                break;
            case 13:
                taskExec.execute(new AmazonInfoRetriever(textView, "EAN", productID, historyManager, context));
                break;
        }
    } else if (result instanceof ISBNParsedResult) {
        String isbn = ((ISBNParsedResult) result).getISBN();
        taskExec.execute(new ProductResultInfoRetriever(textView, isbn, historyManager, context));
        taskExec.execute(new BookResultInfoRetriever(textView, isbn, historyManager, context));
        taskExec.execute(new AmazonInfoRetriever(textView, "ISBN", isbn, historyManager, context));
    }
}
 
开发者ID:yakovenkodenis,项目名称:Discounty,代码行数:27,代码来源:SupplementalInfoRetriever.java

示例3: AutoFocusManager

import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
AutoFocusManager(Context context, Camera camera) {
  this.camera = camera;
  taskExec = new AsyncTaskExecManager().build();
  SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
  String currentFocusMode = camera.getParameters().getFocusMode();
  useAutoFocus =
      FOCUS_MODES_CALLING_AF.contains(currentFocusMode);
  Log.i(TAG, "Current focus mode '" + currentFocusMode + "'; use auto focus? " + useAutoFocus);
  start();
}
 
开发者ID:mit-cml,项目名称:appinventor-extensions,代码行数:11,代码来源:AutoFocusManager.java

示例4: AutoFocusManager

import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
AutoFocusManager(Context context, Camera camera) {
  this.camera = camera;
  taskExec = new AsyncTaskExecManager().build();
  SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
  String currentFocusMode = camera.getParameters().getFocusMode();
  useAutoFocus =
      sharedPrefs.getBoolean(PreferencesActivity.KEY_AUTO_FOCUS, true) &&
      FOCUS_MODES_CALLING_AF.contains(currentFocusMode);
  Log.i(TAG, "Current focus mode '" + currentFocusMode + "'; use auto focus? " + useAutoFocus);
  start();
}
 
开发者ID:atomsheep,项目名称:sres-app,代码行数:12,代码来源:AutoFocusManager.java

示例5: AutoFocusManager

import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
AutoFocusManager(Context context, Camera camera) {
    this.camera = camera;
    taskExec = new AsyncTaskExecManager().build();
    SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
    String currentFocusMode = camera.getParameters().getFocusMode();
    useAutoFocus =
            sharedPrefs.getBoolean(PreferencesActivity.KEY_AUTO_FOCUS, true) &&
                    FOCUS_MODES_CALLING_AF.contains(currentFocusMode);
    Log.i(TAG, "Current focus mode '" + currentFocusMode + "'; use auto focus? " + useAutoFocus);
    start();
}
 
开发者ID:yakovenkodenis,项目名称:Discounty,代码行数:12,代码来源:AutoFocusManager.java

示例6: AutoFocusManager

import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
AutoFocusManager(Context context, Camera camera) {
  this.camera = camera;
  taskExec = new AsyncTaskExecManager().build();
  String currentFocusMode = camera.getParameters().getFocusMode();
  useAutoFocus = true &&
      FOCUS_MODES_CALLING_AF.contains(currentFocusMode);
  Log.i(TAG, "Current focus mode '" + currentFocusMode + "'; use auto focus? " + useAutoFocus);
  start();
}
 
开发者ID:bushidowallet,项目名称:bushido-android-app,代码行数:10,代码来源:AutoFocusManager.java

示例7: AutoFocusManager

import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
AutoFocusManager(Context context, Camera camera) {
  this.camera = camera;
  taskExec = new AsyncTaskExecManager().build();
  //SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context); // No need to get SharedPreferences
  String currentFocusMode = camera.getParameters().getFocusMode();
  useAutoFocus =
      /*sharedPrefs.getBoolean(PreferencesActivity.KEY_AUTO_FOCUS, true) &&*/ // No need to get SharedPreferences
      FOCUS_MODES_CALLING_AF.contains(currentFocusMode);
  Log.i(TAG, "Current focus mode '" + currentFocusMode + "'; use auto focus? " + useAutoFocus);
  start();
}
 
开发者ID:Gutyn,项目名称:camera2QRcodeReader,代码行数:12,代码来源:AutoFocusManager.java

示例8: maybeInvokeRetrieval

import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
public static void maybeInvokeRetrieval(TextView textView, ParsedResult result, HistoryManager historyManager,
        Context context) {
    AsyncTaskExecInterface taskExec = new AsyncTaskExecManager().build();
    if (result instanceof URIParsedResult) {
        taskExec.execute(new URIResultInfoRetriever(textView, (URIParsedResult) result, historyManager, context));
        taskExec.execute(new TitleRetriever(textView, (URIParsedResult) result, historyManager));
    } else if (result instanceof ProductParsedResult) {
        String productID = ((ProductParsedResult) result).getProductID();
        taskExec.execute(new ProductResultInfoRetriever(textView, productID, historyManager, context));
    } else if (result instanceof ISBNParsedResult) {
        String isbn = ((ISBNParsedResult) result).getISBN();
        taskExec.execute(new ProductResultInfoRetriever(textView, isbn, historyManager, context));
        taskExec.execute(new BookResultInfoRetriever(textView, isbn, historyManager, context));
    }
}
 
开发者ID:thomas-bornschlegel,项目名称:AndroidMultiChannelMiddleware,代码行数:16,代码来源:SupplementalInfoRetriever.java

示例9: AutoFocusManager

import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
AutoFocusManager(Context context, Camera camera)
{
	this.camera = camera;
	taskExec = new AsyncTaskExecManager().build();
	SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
	String currentFocusMode = camera.getParameters().getFocusMode();
	useAutoFocus =
			sharedPrefs.getBoolean(PreferencesActivity.KEY_AUTO_FOCUS, true) &&
					FOCUS_MODES_CALLING_AF.contains(currentFocusMode);
	Log.i(TAG, "Current focus mode '" + currentFocusMode + "'; use auto focus? " + useAutoFocus);
	start();
}
 
开发者ID:Abolitionist-Project,项目名称:MediModo-Android,代码行数:13,代码来源:AutoFocusManager.java

示例10: InactivityTimer

import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
InactivityTimer(Activity activity)
{
	this.activity = activity;
	taskExec = new AsyncTaskExecManager().build();
	powerStatusReceiver = new PowerStatusReceiver();
	onActivity();
}
 
开发者ID:Abolitionist-Project,项目名称:MediModo-Android,代码行数:8,代码来源:InactivityTimer.java

示例11: InactivityTimer

import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
InactivityTimer(Activity activity) {
  this.activity = activity;
  taskExec = new AsyncTaskExecManager().build();
  powerStatusReceiver = new PowerStatusReceiver();
  onActivity();
}
 
开发者ID:mit-cml,项目名称:appinventor-extensions,代码行数:7,代码来源:InactivityTimer.java

示例12: SearchBookContentsActivity

import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
public SearchBookContentsActivity() {
  taskExec = new AsyncTaskExecManager().build();
}
 
开发者ID:atomsheep,项目名称:sres-app,代码行数:4,代码来源:SearchBookContentsActivity.java

示例13: AppPickerActivity

import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
public AppPickerActivity() {
  labelsPackages = new ArrayList<String[]>();
  taskExec = new AsyncTaskExecManager().build();
}
 
开发者ID:atomsheep,项目名称:sres-app,代码行数:5,代码来源:AppPickerActivity.java

示例14: WifiResultHandler

import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
public WifiResultHandler(CaptureActivity activity, ParsedResult result) {
  super(activity, result);
  parent = activity;
  taskExec = new AsyncTaskExecManager().build();
}
 
开发者ID:atomsheep,项目名称:sres-app,代码行数:6,代码来源:WifiResultHandler.java

示例15: SearchBookContentsActivity

import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
public SearchBookContentsActivity() {
    taskExec = new AsyncTaskExecManager().build();
}
 
开发者ID:yakovenkodenis,项目名称:Discounty,代码行数:4,代码来源:SearchBookContentsActivity.java


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