本文整理汇总了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));
}
}
示例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));
}
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例12: SearchBookContentsActivity
import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
public SearchBookContentsActivity() {
taskExec = new AsyncTaskExecManager().build();
}
示例13: AppPickerActivity
import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
public AppPickerActivity() {
labelsPackages = new ArrayList<String[]>();
taskExec = new AsyncTaskExecManager().build();
}
示例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();
}
示例15: SearchBookContentsActivity
import com.google.zxing.client.android.common.executor.AsyncTaskExecManager; //导入依赖的package包/类
public SearchBookContentsActivity() {
taskExec = new AsyncTaskExecManager().build();
}