當我在asus變壓器TF 101中啓動應用程序時,出現下面的異常,點擊掃描按鈕後,它顯示屏幕中間的紅線,但沒有矩形視圖掃描圖像。可以告訴我如何解決這個問題?提前致謝。Zxing條碼掃描器異常時點擊掃描按鈕在華碩變壓器TF101 android平板設備?
10-15 17:12:53.630:WARN/CaptureActivity(2500):意外的錯誤 initializating相機10-15 17:12:53.630:WARN/CaptureActivity(2500): 了java.lang.RuntimeException: setParameters failed 10-15 17:12:53.630: WARN/CaptureActivity(2500):at android.hardware.Camera.native_setParameters(Native Method)10-15 17:12:53.630:WARN/CaptureActivity(2500):at android.hardware.Camera.setParameters(Camera.java:1297)10-15 17:12:53.630:WARN/CaptureActivity(2500):at jim.h.common.android.lib.zxing.camera.CameraConfigurationManager。 setDesiredCameraParameters(CameraConfigurationM anager.java:73) 10-15 17:12:53.630:WARN/CaptureActivity(2500):at jim.h.common.android.lib.zxing.camera.CameraManager.openDriver(CameraManager.java:132) 10-15 17:12:53.630:WARN/CaptureActivity(2500):at jim.h.common.android.lib.zxing.CaptureActivity.initCamera(CaptureActivity.java:281) 10-15 17:12:53.630: WARN/CaptureActivity(2500):at jim.h.common.android.lib.zxing.CaptureActivity.surfaceCreated(CaptureActivity.java:181) 10-15 17:12:53.630:WARN/CaptureActivity(2500):at android.view.SurfaceView.access $ 000(SurfaceView.java:81)10 -12:53.630:WARN/CaptureActivity(2500):at 10/100(SurfaceView.java:81) 15 17:12:53.630:WARN/CaptureActivity(2500):at android.view.SurfaceView $ 3.onPreDraw(SurfaceView.java:169)10-15 17:12:53.630:WARN/CaptureActivity(2500):at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:590) 10-15 17:12:53.630:WARN/CaptureActivity(2500):at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1617) 10- 15 17:12:53.630:WARN/CaptureActivity(2500):at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442)10-15 17:12:53.630:WARN/CaptureActivity(2500):at android .os.Handler.dispatchMessage(Handler.java:99)10-15 17:12:53.630:WARN/CaptureActivity(2500):at android.os.Looper.loop(Lo oper.java:137)10-15 17:12:53.630: WARN/CaptureActivity(2500):at android.app.ActivityThread.main(ActivityThread.java:4424)10-15 17:12:53.630:WARN/CaptureActivity(2500):at java.lang.reflect.Method.invokeNative(Native Method)10-15 17:12:53.630:WARN/CaptureActivity(2500):at java.lang.reflect.Method.invoke Method.java:511)10-15 17:12:53.630: WARN/CaptureActivity(2500):at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:784) 10-15 17 :12:53.630:WARN/CaptureActivity(2500):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)10-15 17:12:53.630:WARN/CaptureActivity(2500):at dalvik.system.NativeStart.main(本機方法)
這實際上與它無關。沒有許可,它會失敗,出現「沒有權限」的錯誤。 –