Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/335.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java zxing条码扫描器的android清单文件需要添加哪些内容?_Java_Android_Manifest_Barcode Scanner - Fatal编程技术网

Java zxing条码扫描器的android清单文件需要添加哪些内容?

Java zxing条码扫描器的android清单文件需要添加哪些内容?,java,android,manifest,barcode-scanner,Java,Android,Manifest,Barcode Scanner,我曾试图将zxing条形码扫描仪集成到我的应用程序中,但我对清单中需要包含的内容一无所知。现在,当我点击按钮启动相机时,它会导致强制关闭,当我点击强制关闭时,条形码扫描仪会在后面打开并工作。链接到按钮的代码如下所示: public void onClick(View v) { Intent intent = new Intent("com.google.zxing.client.android.SCAN"); intent.setPackage("com.google.z

我曾试图将zxing条形码扫描仪集成到我的应用程序中,但我对清单中需要包含的内容一无所知。现在,当我点击按钮启动相机时,它会导致强制关闭,当我点击强制关闭时,条形码扫描仪会在后面打开并工作。链接到按钮的代码如下所示:

    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          
            }
        }
}
这是android清单文件:

<?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>

logcat跟踪非常长:

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
D/RILJ(1470):[1696]未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683241)%%+HTCUCSQ:19\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683250)%%+HTCUCSQ:18\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683253)%%+HTCUCSQ:19\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683256)%%+HTCUCSQ:18\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683259)%%+HTCUCSQ:17\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683265)%%+HTCUCSQ:20\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683268)%%+HTCUCSQ:19\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683271)%%+HTCUCSQ:18\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683274)%%+HTCUCSQ:17\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683280)%%+HTCUCSQ:16\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683283)%%+HTCUCSQ:17\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683286)%%+HTCUCSQ:19\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683295)%%+HTCUCSQ:18\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683304)%%+HTCUCSQ:19\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683310)%%+HTCUCSQ:20\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683322)%%+HTCUCSQ:18\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683325)%%+HTCUCSQ:19\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683331)%%+HTCUCSQ:20\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683334)%%+HTCUCSQ:22\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683344)%%+HTCUCSQ:15\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683347)%%+HTCUCSQ:17\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683350)%%+HTCUCSQ:16\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683353)%%+HTCUCSQ:13\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683356)%%+HTCUCSQ:15\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683359)%%+HTCUCSQ:19\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683362)%%+HTCUCSQ:21\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683374)%%+HTCUCSQ:22\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683386)%%+HTCUCSQ:21\r\n
D/RILSWITCH(1211):供应商RIL-->未经请求:1009
D/RIL开关(1211):向rild发送供应商RIL未经请求的消息
D/HTC_RIL(1211):(t=1299683389)%
Intent intent = new Intent("com.google.zxing.client.android.SCAN");
intent.putExtra("SCAN_MODE", "PRODUCT_MODE");
startActivityForResult(intent, 0);
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="de.myPackage"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".MyApp"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>

<uses-permission android:name="android.permission.INTERNET"></uses-permission>
</manifest>
IntentIntegrator.initiateScan(this);