日期:2014-05-20 浏览次数:21397 次
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="net.qm.ui" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" /> <application android:icon="@drawable/icon" android:label="@string/app_name" > <activity android:name=".MainActivity" android:label="@string/app_name" android:screenOrientation="portrait"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
<activity android:name="com.google.zxing.client.android.CaptureActivity" android:screenOrientation="landscape" android:windowSoftInputMode="stateAlwaysHidden"> </activity>
01-21 05:43:57.507: W/CaptureActivity(16819): Unexpected error initializing camera 01-21 05:43:57.507: W/CaptureActivity(16819): java.lang.RuntimeException: Fail to connect to camera service 01-21 05:43:57.507: W/CaptureActivity(16819): at android.hardware.Camera.native_setup(Native Method) 01-21 05:43:57.507: W/CaptureActivity(16819): at android.hardware.Camera.<init>(Camera.java:120) 01-21 05:43:57.507: W/CaptureActivity(16819): at android.hardware.Camera.open(Camera.java:97) 01-21 05:43:57.507: W/CaptureActivity(16819): at com.google.zxing.client.android.camera.CameraManager.openDriver(CameraManager.java:102) 01-21 05:43:57.507: W/CaptureActivity(16819): at com.google.zxing.client.android.CaptureActivity.initCamera(CaptureActivity.java:739) 01-21 05:43:57.507: W/CaptureActivity(16819): at com.google.zxing.client.android.CaptureActivity.surfaceCreated(CaptureActivity.java:433)