當前位置: 首頁>>代碼示例>>Java>>正文


Java CaptureActivity類代碼示例

本文整理匯總了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);
}
 
開發者ID:Dreamer206602,項目名稱:SimplifyReader2,代碼行數:22,代碼來源:HomeActivity.java

示例2: DecodeThread

import com.github.obsessive.simplifyreader.ui.activity.qrcode.CaptureActivity; //導入依賴的package包/類
public DecodeThread(CaptureActivity activity) {

        this.activity = activity;
        handlerInitLatch = new CountDownLatch(1);
    }
 
開發者ID:Dreamer206602,項目名稱:SimplifyReader2,代碼行數:6,代碼來源:DecodeThread.java

示例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);
}
 
開發者ID:Dreamer206602,項目名稱:SimplifyReader2,代碼行數:5,代碼來源:DecodeHandler.java


注:本文中的com.github.obsessive.simplifyreader.ui.activity.qrcode.CaptureActivity類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。