需要添加到Android清单文件zxing吧code扫描仪是什么? [英] What needs to be added to the android manifest file for the zxing barcode scanner?

查看:100
本文介绍了需要添加到Android清单文件zxing吧code扫描仪是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用意向的zxing吧code扫描仪集成到我的应用程序,但我失去了什么需要在清单中。截至目前,当我按一下按钮来启动它会导致​​强制关闭,相机当我点击强行关闭酒吧code扫描仪打开了后面的作品。的code连接到按钮是如下:

 公共无效的onClick(视图v){
    意向意图=新的意图(com.google.zxing.client.android.SCAN);
    intent.setPackage(com.google.zxing.client.android);
    intent.putExtra(SCAN_MODE,QR_ code_MODE);
    startActivityForResult(意向,0);
    }
公共无效onActivityResult(INT申请code,INT结果code,意图意图){
    如果(要求code == 0){
        如果(结果code == RESULT_OK){
            内容= intent.getStringExtra(SCAN_RESULT);
            格式= intent.getStringExtra(SCAN_RESULT_FORMAT);
            //处理成功的扫描
            }否则,如果(结果code == RESULT_CANCELED){
                //处理取消
            }
        }
}
 

这是Android清单文件:

 < XML版本=1.0编码=UTF-8&GT?;
<舱单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
      包=andrew.markley.android.firstGame
      安卓版code =1
      机器人:VERSIONNAME =1.0>
    <使用-SDK安卓的minSdkVersion =8/>
    <使用特征的android:NAME =android.hardware.CAMERA/>
    <应用机器人:图标=@可绘制/图标机器人:标签=@字符串/ APP_NAME>
        <活动机器人:名称=机器人创造:标签=@字符串/ APP_NAME>
            <意向滤光器>
                <作用机器人:名称=android.intent.action.MAIN/>
                <类机器人:名称=android.intent.category.LAUNCHER/>
            &所述; /意图滤光器>
            <意向滤光器>
                <作用机器人:名称=com.google.zxing.client.android.SCAN/>
                <类机器人:名称=com.google.zxing.client.android/>
            &所述; /意图滤光器>
    < /活性GT;
    <活动机器人:扫描名称=机器人:screenOrientation =景观的Andr​​oid版本:configChanges =方向| keyboardHidden安卓主题=@安卓风格/ Theme.NoTitleBar.Fullscreen机器人:windowSoftInputMode =stateAlwaysHidden > <意向滤光器> <作用机器人:名称=android.intent.action.MAIN/> <类机器人:名称=android.intent.category.LAUNCHER/> &所述; /意图滤光器> <意向滤光器> <作用机器人:名称=com.google.zxing.client.android.SCAN/> <类机器人:名称=android.intent.category.DEFAULT/> &所述; /意图滤光器> < /活性GT;
    < /用途>

  <使用-权限的Andr​​oid:名称=android.permission.CAMERA/>
< /舱单>
 

在logcat的痕迹是非常长的:

  D / RILJ(1470):[1696]< SCREEN_STATE错误:com.android.internal.telephony.Co
mmandException:GENERIC_FAILURE
D / HTC_RIL(1211):(T = 1299683238)%% + HTCUCSQ:18 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683241)%% + HTCUCSQ:19 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683250)%% + HTCUCSQ:18 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683253)%% + HTCUCSQ:19 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683256)%% + HTCUCSQ:18 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683259)%% + HTCUCSQ:17 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683265)%% + HTCUCSQ:20 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683268)%% + HTCUCSQ:19 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683271)%% + HTCUCSQ:18 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683274)%% + HTCUCSQ:17 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683280)%% + HTCUCSQ:16 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683283)%% + HTCUCSQ:17 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683286)%% + HTCUCSQ:19 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683295)%% + HTCUCSQ:18 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683304)%% + HTCUCSQ:19 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683310)%% + HTCUCSQ:20 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683322)%% + HTCUCSQ:18 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683325)%% + HTCUCSQ:19 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683331)%% + HTCUCSQ:20 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683334)%% + HTCUCSQ:22 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683344)%% + HTCUCSQ:15 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683347)%% + HTCUCSQ:17 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683350)%% + HTCUCSQ:16 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683353)%% + HTCUCSQ:13 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683356)%% + HTCUCSQ:15 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683359)%% + HTCUCSQ:19 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683362)%% + HTCUCSQ:21 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683374)%% + HTCUCSQ:22 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683386)%% + HTCUCSQ:21 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683389)%% + HTCUCSQ:20 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683392)%% + HTCUCSQ:21 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683398)%% + HTCUCSQ:20 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683407)%% + HTCUCSQ:21 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683413)%% + HTCUCSQ:20 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683419)%% + HTCUCSQ:21 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683425)%% + HTCUCSQ:20 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683428)%% + HTCUCSQ:17 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683431)%% + HTCUCSQ:15 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683434)%% + HTCUCSQ:16 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683437)%% + HTCUCSQ:17 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683440)%% + HTCUCSQ:18 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683443)%% + HTCUCSQ:19 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683455)%% + HTCUCSQ:20 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683458)%% + HTCUCSQ:21 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683470)%% + HTCUCSQ:20 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683473)%% + HTCUCSQ:18 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683476)%% + HTCUCSQ:14 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683482)%% + HTCUCSQ:15 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683485)%% + HTCUCSQ:17 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683494)%% + HTCUCSQ:18 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683497)%% + HTCUCSQ:19 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683500)%% + HTCUCSQ:17 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683503)%% + HTCUCSQ:18 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683506)%% + HTCUCSQ:19 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683512)%% + HTCUCSQ:16 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683521)%% + HTCUCSQ:18 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683527)%% + HTCUCSQ:19 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683530)%% + HTCUCSQ:18 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683536)%% + HTCUCSQ:17 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683539)%% + HTCUCSQ:16 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683542)%% + HTCUCSQ:17 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / RILJ(1470):[1697]≥ SCREEN_STATE:假的
W / RILSWITCH(1211):RIL请求:SCREEN_STATE  - >供应商RIL
D / HTC_RIL(1211):ril_func_screen_state_notified():被称为
D / HTC_RIL(1211):fd_ballots():AP 0票,以便快速休眠!
D / HTC_RIL(1211):(T = 1299683544)>> AT + ENCSQ = 0 \ r
D / GSM(1470):[DataConnection]停止轮询的NetStat
D / GSM(1470):[DataConnection]启动调查的NetStat
D / HTC_RIL(1211):(T = 1299683544)LT;< 0 \ r
D / HTC_RIL(1211):(T = 1299683544)>> AT + CREG = 1 \ r
D / HTC_RIL(1211):(T = 1299683544)LT;< 0 \ r
D / HTC_RIL(1211):(T = 1299683544)>> AT + CSQ \ r
D / HTC_RIL(1211):(T = 1299683544)LT;< + CSQ:17,99 \ r \ N0 \ r
D / HTC_RIL(1211):(T = 1299683544)>> AT @ HTCPDPFD = 1 \ r
D / HTC_RIL(1211):(T = 1299683544)XX @PDPFD:garbage_count = 0 \ r \ñ
D / HTC_RIL(1211):(T = 1299683544)LT;< 0 \ r
D / HTC_RIL(1211):(T = 1299683544)>> AT + HTCPDPFD = 1 \ r
D / HTC_RIL(1211):(T = 1299683544)LT;< 4 \ r
D / RILSWITCH(1211):RILD<  -  RIL(令牌0xd298)
D / RILSWITCH(1211):atdToken:0xd298,bECMRedirected 0
D / RILJ(1470):[1697]< SCREEN_STATE错误:com.android.internal.telephony.Co
mmandException:GENERIC_FAILURE
D / RILJ(1470):[1698]≥ SCREEN_STATE:真
W / RILSWITCH(1211):RIL请求:SCREEN_STATE  - >供应商RIL
D / HTC_RIL(1211):ril_func_screen_state_notified():被称为
D / HTC_RIL(1211):fd_ballots():AP 0票禁用快速休眠!
D / HTC_RIL(1211):(T = 1299683723)>> AT + ENCSQ = 1 \ r
D / HTC_RIL(1211):(T = 1299683723)LT;< 0 \ r
D / HTC_RIL(1211):(T = 1299683723)>> AT + CREG = 2 \ r
D / GSM(1470):[DataConnection]停止轮询的NetStat
D / GSM(1470):[DataConnection]启动调查的NetStat
D / HTC_RIL(1211):(T = 1299683723)LT;< 0 \ r
D / HTC_RIL(1211):(T = 1299683723)>> AT + CSQ \ r
D / HTC_RIL(1211):(T = 1299683723)LT;< + CSQ:20,0 \ r \ N0 \ r
D / HTC_RIL(1211):(T = 1299683723)>> AT + CREG?\ r
D / HTC_RIL(1211):(T = 1299683723)LT;< + CREG:2,1,9CCE,000060ED为\ r \ N0 \ r
D / HTC_RIL(1211):(T = 1299683723)>> AT + CGREG?\ r
D / HTC_RIL(1211):(T = 1299683723)LT;< + CGREG:1,1 \ r \ N0 \ r
D / HTC_RIL(1211):(T = 1299683723)>> AT + COPS = 3,2,?+ COPS \ r
D / HTC_RIL(1211):(T = 1299683723)LT;< + COPS:0,2,31026,3 \ r \ N0 \ r
D / HTC_RIL(1211):(T = 1299683723)>> AT @ HTCPDPFD = 0 \ r
D / HTC_RIL(1211):(T = 1299683723)XX @PDPFD:garbage_count = 0 \ r \ñ
D / HTC_RIL(1211):(T = 1299683723)LT;< 0 \ r
D / HTC_RIL(1211):(T = 1299683723)>> AT + HTCPDPFD = 0 \ r
D / HTC_RIL(1211):(T = 1299683723)LT;< 4 \ r
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / RILSWITCH(1211):RILD<  -  RIL(令牌0xdf88)
D / RILSWITCH(1211):atdToken:0xdf88,bECMRedirected 0
D / RILJ(1470):[1698]< SCREEN_STATE错误:com.android.internal.telephony.Co
mmandException:GENERIC_FAILURE
D / HTC_RIL(1211):(T = 1299683725)%% + HTCUCSQ:19 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683731)%% + HTCUCSQ:20 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683734)%% + HTCUCSQ:21 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683740)%% + HTCUCSQ:19 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683758)%% + HTCUCSQ:20 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683761)%% + HTCUCSQ:19 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683770)%% + HTCUCSQ:18 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683779)%% + HTCUCSQ:17 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683782)%% + HTCUCSQ:18 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683788)%% + HTCUCSQ:17 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683791)%% + HTCUCSQ:18 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683794)%% + HTCUCSQ:16 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683797)%% + HTCUCSQ:15 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / HTC_RIL(1211):(T = 1299683800)%% + HTCUCSQ:17 \ r \ñ
D / RILSWITCH(1211):供应商RIL ---->请自来:1009
D / RILSWITCH(1211):发送厂商RIL不请自来的邮件RILD
D / RILJ(1470):[1699]≥ SCREEN_STATE:假的
W / RILSWITCH(1211):RIL请求:SCREEN_STATE  - >供应商RIL
D / HTC_RIL(1211):ril_func_screen_state_notified():被称为
D / HTC_RIL(1211):fd_ballots():AP 0票,以便快速休眠!
D / HTC_RIL(1211):(T = 1299683802)>> AT + ENCSQ = 0 \ r
D / HTC_RIL(1211):(T = 1299683802)LT;< 0 \ r
D / HTC_RIL(1211):(T = 1299683802)>> AT + CREG = 1 \ r
D / GSM(1470):[DataConnection]停止轮询的NetStat
D / GSM(1470):[DataConnection]启动调查的NetStat
D / HTC_RIL(1211):(T = 1299683802)LT;< 0 \ r
D / HTC_RIL(1211):(T = 1299683802)>> AT + CSQ \ r
D / HTC_RIL(1211):(T = 1299683802)LT;< + CSQ:17,99 \ r \ N0 \ r
D / HTC_RIL(1211):(T = 1299683802)>> AT @ HTCPDPFD = 1 \ r
D / HTC_RIL(1211):(T = 1299683802)XX @PDPFD:garbage_count = 0 \ r \ñ
D / HTC_RIL(1211):(T = 1299683802)LT;< 0 \ r
D / HTC_RIL(1211):(T = 1299683802)>> AT + HTCPDPFD = 1 \ r
D / HTC_RIL(1211):(T = 1299683802)LT;< 4 \ r
D / RILSWITCH(1211):RILD<  -  RIL(令牌0xd298)
D / RILSWITCH(1211):atdToken:0xd298,bECMRedirected 0
D / RILJ(1470):[1699]< SCREEN_STATE错误:com.android.internal.telephony.Co
mmandException:GENERIC_FAILURE
 

解决方案

该ZXing项目提供了一些code通过对他们的Wiki的意图调用XZing:

<一个href="http://$c$c.google.com/p/zxing/source/browse/trunk/android-integration/src/com/google/zxing/integration/android/IntentIntegrator.java" rel="nofollow">http://$c$c.google.com/p/zxing/source/browse/trunk/android-integration/src/com/google/zxing/integration/android/IntentIntegrator.java

如果你使用的code,你不需要任何东西添加到您的清单文件。从你的活动中,你可以叫

  IntentIntegrator.initiateScan(本);
 

这会照顾验证安装ZXing的,并提示用户通过卖场安装它,如果它是不

I have used Intent to integrate the zxing barcode scanner into my application but i am lost on what needs to be in the manifest. As of right now when i click on the button to launch the camera it causes a force close, when i click force close the barcode scanner opens up behind and works. The code linked to the button is as follows:

    public void onClick(View v) {
    Intent intent = new Intent("com.google.zxing.client.android.SCAN");
    intent.setPackage("com.google.zxing.client.android");
    intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
    startActivityForResult(intent, 0);     
    }
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
    if (requestCode == 0) {         
        if (resultCode == RESULT_OK) {
            contents = intent.getStringExtra("SCAN_RESULT");
            format = intent.getStringExtra("SCAN_RESULT_FORMAT");
            // Handle successful scan         
            } else if (resultCode == RESULT_CANCELED) {
                // Handle cancel          
            }
        }
}

this is the android manifest file:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="andrew.markley.android.firstGame"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-sdk android:minSdkVersion="8" />
    <uses-feature android:name="android.hardware.CAMERA"/>
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".create" android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <intent-filter>
                <action android:name="com.google.zxing.client.android.SCAN" />
                <category android:name="com.google.zxing.client.android" />
            </intent-filter> 
    </activity>         
    <activity android:name=".Scan" android:screenOrientation="landscape" android:configChanges="orientation|keyboardHidden"                android:theme="@android:style/Theme.NoTitleBar.Fullscreen"                android:windowSoftInputMode="stateAlwaysHidden">        <intent-filter>          <action android:name="android.intent.action.MAIN"/>          <category android:name="android.intent.category.LAUNCHER"/>        </intent-filter>        <intent-filter>          <action android:name="com.google.zxing.client.android.SCAN"/>          <category android:name="android.intent.category.DEFAULT"/>        </intent-filter>  </activity>
    </application>

  <uses-permission android:name="android.permission.CAMERA"/>
</manifest>

The logcat trace is extremely long:

D/RILJ    ( 1470): [1696]< SCREEN_STATE error: com.android.internal.telephony.Co
mmandException: GENERIC_FAILURE
D/HTC_RIL ( 1211): (t=1299683238)%% +HTCUCSQ: 18\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683241)%% +HTCUCSQ: 19\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683250)%% +HTCUCSQ: 18\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683253)%% +HTCUCSQ: 19\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683256)%% +HTCUCSQ: 18\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683259)%% +HTCUCSQ: 17\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683265)%% +HTCUCSQ: 20\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683268)%% +HTCUCSQ: 19\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683271)%% +HTCUCSQ: 18\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683274)%% +HTCUCSQ: 17\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683280)%% +HTCUCSQ: 16\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683283)%% +HTCUCSQ: 17\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683286)%% +HTCUCSQ: 19\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683295)%% +HTCUCSQ: 18\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683304)%% +HTCUCSQ: 19\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683310)%% +HTCUCSQ: 20\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683322)%% +HTCUCSQ: 18\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683325)%% +HTCUCSQ: 19\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683331)%% +HTCUCSQ: 20\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683334)%% +HTCUCSQ: 22\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683344)%% +HTCUCSQ: 15\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683347)%% +HTCUCSQ: 17\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683350)%% +HTCUCSQ: 16\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683353)%% +HTCUCSQ: 13\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683356)%% +HTCUCSQ: 15\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683359)%% +HTCUCSQ: 19\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683362)%% +HTCUCSQ: 21\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683374)%% +HTCUCSQ: 22\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683386)%% +HTCUCSQ: 21\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683389)%% +HTCUCSQ: 20\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683392)%% +HTCUCSQ: 21\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683398)%% +HTCUCSQ: 20\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683407)%% +HTCUCSQ: 21\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683413)%% +HTCUCSQ: 20\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683419)%% +HTCUCSQ: 21\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683425)%% +HTCUCSQ: 20\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683428)%% +HTCUCSQ: 17\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683431)%% +HTCUCSQ: 15\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683434)%% +HTCUCSQ: 16\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683437)%% +HTCUCSQ: 17\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683440)%% +HTCUCSQ: 18\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683443)%% +HTCUCSQ: 19\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683455)%% +HTCUCSQ: 20\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683458)%% +HTCUCSQ: 21\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683470)%% +HTCUCSQ: 20\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683473)%% +HTCUCSQ: 18\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683476)%% +HTCUCSQ: 14\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683482)%% +HTCUCSQ: 15\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683485)%% +HTCUCSQ: 17\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683494)%% +HTCUCSQ: 18\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683497)%% +HTCUCSQ: 19\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683500)%% +HTCUCSQ: 17\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683503)%% +HTCUCSQ: 18\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683506)%% +HTCUCSQ: 19\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683512)%% +HTCUCSQ: 16\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683521)%% +HTCUCSQ: 18\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683527)%% +HTCUCSQ: 19\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683530)%% +HTCUCSQ: 18\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683536)%% +HTCUCSQ: 17\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683539)%% +HTCUCSQ: 16\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683542)%% +HTCUCSQ: 17\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/RILJ    ( 1470): [1697]> SCREEN_STATE: false
W/RILSWITCH( 1211): RIL REQUEST: SCREEN_STATE --> Vendor RIL
D/HTC_RIL ( 1211): ril_func_screen_state_notified():called
D/HTC_RIL ( 1211): fd_ballots():AP 0 votes to enable fast dormancy!
D/HTC_RIL ( 1211): (t=1299683544)>> AT+ENCSQ=0\r
D/GSM     ( 1470): [DataConnection] Stop poll NetStat
D/GSM     ( 1470): [DataConnection] Start poll NetStat
D/HTC_RIL ( 1211): (t=1299683544)<< 0\r
D/HTC_RIL ( 1211): (t=1299683544)>> AT+CREG=1\r
D/HTC_RIL ( 1211): (t=1299683544)<< 0\r
D/HTC_RIL ( 1211): (t=1299683544)>> AT+CSQ\r
D/HTC_RIL ( 1211): (t=1299683544)<< +CSQ: 17,99\r\n0\r
D/HTC_RIL ( 1211): (t=1299683544)>> AT@HTCPDPFD=1\r
D/HTC_RIL ( 1211): (t=1299683544)XX @PDPFD: garbage_count=0\r\n
D/HTC_RIL ( 1211): (t=1299683544)<< 0\r
D/HTC_RIL ( 1211): (t=1299683544)>> AT+HTCPDPFD=1\r
D/HTC_RIL ( 1211): (t=1299683544)<< 4\r
D/RILSWITCH( 1211): RILD <-- RIL (token 0xd298)
D/RILSWITCH( 1211): atdToken : 0xd298, bECMRedirected 0
D/RILJ    ( 1470): [1697]< SCREEN_STATE error: com.android.internal.telephony.Co
mmandException: GENERIC_FAILURE
D/RILJ    ( 1470): [1698]> SCREEN_STATE: true
W/RILSWITCH( 1211): RIL REQUEST: SCREEN_STATE --> Vendor RIL
D/HTC_RIL ( 1211): ril_func_screen_state_notified():called
D/HTC_RIL ( 1211): fd_ballots():AP 0 votes to disable fast dormancy!
D/HTC_RIL ( 1211): (t=1299683723)>> AT+ENCSQ=1\r
D/HTC_RIL ( 1211): (t=1299683723)<< 0\r
D/HTC_RIL ( 1211): (t=1299683723)>> AT+CREG=2\r
D/GSM     ( 1470): [DataConnection] Stop poll NetStat
D/GSM     ( 1470): [DataConnection] Start poll NetStat
D/HTC_RIL ( 1211): (t=1299683723)<< 0\r
D/HTC_RIL ( 1211): (t=1299683723)>> AT+CSQ\r
D/HTC_RIL ( 1211): (t=1299683723)<< +CSQ: 20,0\r\n0\r
D/HTC_RIL ( 1211): (t=1299683723)>> AT+CREG?\r
D/HTC_RIL ( 1211): (t=1299683723)<< +CREG: 2,1,"9CCE","000060ED"\r\n0\r
D/HTC_RIL ( 1211): (t=1299683723)>> AT+CGREG?\r
D/HTC_RIL ( 1211): (t=1299683723)<< +CGREG: 1,1\r\n0\r
D/HTC_RIL ( 1211): (t=1299683723)>> AT+COPS=3,2;+COPS?\r
D/HTC_RIL ( 1211): (t=1299683723)<< +COPS: 0,2,"31026",3\r\n0\r
D/HTC_RIL ( 1211): (t=1299683723)>> AT@HTCPDPFD=0\r
D/HTC_RIL ( 1211): (t=1299683723)XX @PDPFD: garbage_count=0\r\n
D/HTC_RIL ( 1211): (t=1299683723)<< 0\r
D/HTC_RIL ( 1211): (t=1299683723)>> AT+HTCPDPFD=0\r
D/HTC_RIL ( 1211): (t=1299683723)<< 4\r
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/RILSWITCH( 1211): RILD <-- RIL (token 0xdf88)
D/RILSWITCH( 1211): atdToken : 0xdf88, bECMRedirected 0
D/RILJ    ( 1470): [1698]< SCREEN_STATE error: com.android.internal.telephony.Co
mmandException: GENERIC_FAILURE
D/HTC_RIL ( 1211): (t=1299683725)%% +HTCUCSQ: 19\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683731)%% +HTCUCSQ: 20\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683734)%% +HTCUCSQ: 21\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683740)%% +HTCUCSQ: 19\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683758)%% +HTCUCSQ: 20\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683761)%% +HTCUCSQ: 19\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683770)%% +HTCUCSQ: 18\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683779)%% +HTCUCSQ: 17\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683782)%% +HTCUCSQ: 18\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683788)%% +HTCUCSQ: 17\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683791)%% +HTCUCSQ: 18\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683794)%% +HTCUCSQ: 16\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683797)%% +HTCUCSQ: 15\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/HTC_RIL ( 1211): (t=1299683800)%% +HTCUCSQ: 17\r\n
D/RILSWITCH( 1211): Vendor RIL ----> UNSOLICITED: 1009
D/RILSWITCH( 1211): Sending vendor RIL unsolicited message to rild
D/RILJ    ( 1470): [1699]> SCREEN_STATE: false
W/RILSWITCH( 1211): RIL REQUEST: SCREEN_STATE --> Vendor RIL
D/HTC_RIL ( 1211): ril_func_screen_state_notified():called
D/HTC_RIL ( 1211): fd_ballots():AP 0 votes to enable fast dormancy!
D/HTC_RIL ( 1211): (t=1299683802)>> AT+ENCSQ=0\r
D/HTC_RIL ( 1211): (t=1299683802)<< 0\r
D/HTC_RIL ( 1211): (t=1299683802)>> AT+CREG=1\r
D/GSM     ( 1470): [DataConnection] Stop poll NetStat
D/GSM     ( 1470): [DataConnection] Start poll NetStat
D/HTC_RIL ( 1211): (t=1299683802)<< 0\r
D/HTC_RIL ( 1211): (t=1299683802)>> AT+CSQ\r
D/HTC_RIL ( 1211): (t=1299683802)<< +CSQ: 17,99\r\n0\r
D/HTC_RIL ( 1211): (t=1299683802)>> AT@HTCPDPFD=1\r
D/HTC_RIL ( 1211): (t=1299683802)XX @PDPFD: garbage_count=0\r\n
D/HTC_RIL ( 1211): (t=1299683802)<< 0\r
D/HTC_RIL ( 1211): (t=1299683802)>> AT+HTCPDPFD=1\r
D/HTC_RIL ( 1211): (t=1299683802)<< 4\r
D/RILSWITCH( 1211): RILD <-- RIL (token 0xd298)
D/RILSWITCH( 1211): atdToken : 0xd298, bECMRedirected 0
D/RILJ    ( 1470): [1699]< SCREEN_STATE error: com.android.internal.telephony.Co
mmandException: GENERIC_FAILURE

解决方案

The ZXing project provides some code for calling XZing via an Intent on their Wiki:

http://code.google.com/p/zxing/source/browse/trunk/android-integration/src/com/google/zxing/integration/android/IntentIntegrator.java

If you're using that code, you don't need to add anything to your manifest file. From your activity you can just call

IntentIntegrator.initiateScan(this);

That will take care of verifying that ZXing is installed, and prompt the user to install it via the Marketplace if it isn't.

这篇关于需要添加到Android清单文件zxing吧code扫描仪是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆