本文整理匯總了Java中com.github.obsessive.simplifyreader.ui.activity.qrcode.CaptureActivity類的典型用法代碼示例。如果您正苦於以下問題:Java CaptureActivity類的具體用法?Java CaptureActivity怎麽用?Java CaptureActivity使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
CaptureActivity類屬於com.github.obsessive.simplifyreader.ui.activity.qrcode包,在下文中一共展示了CaptureActivity類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onOptionsItemSelected
import com.github.obsessive.simplifyreader.ui.activity.qrcode.CaptureActivity; //導入依賴的package包/類
@Override
public boolean onOptionsItemSelected(MenuItem item) {
if (mActionBarDrawerToggle != null && mActionBarDrawerToggle.onOptionsItemSelected(item)) {
return true;
}
switch (item.getItemId()) {
case R.id.action_capture:
readyGo(CaptureActivity.class);
break;
case R.id.action_about_us:
readyGo(AboutUsActivity.class);
break;
case R.id.action_feedback:
Bundle extras = new Bundle();
extras.putString(FeedbackFragment.BUNDLE_KEY_CONVERSATION_ID, mFeedbackAgent.getDefaultConversation().getId());
readyGo(FeedBackActivity.class, extras);
break;
}
return super.onOptionsItemSelected(item);
}
示例2: DecodeThread
import com.github.obsessive.simplifyreader.ui.activity.qrcode.CaptureActivity; //導入依賴的package包/類
public DecodeThread(CaptureActivity activity) {
this.activity = activity;
handlerInitLatch = new CountDownLatch(1);
}
示例3: DecodeHandler
import com.github.obsessive.simplifyreader.ui.activity.qrcode.CaptureActivity; //導入依賴的package包/類
DecodeHandler(CaptureActivity activity) {
this.activity = activity;
mDecodeUtils = new DecodeUtils(DecodeUtils.DECODE_DATA_MODE_ALL);
}