Autore Topic: Problema con zXing  (Letto 822 volte)

Offline Aryon Solutions S.r.l. - Paolo

  • Nuovo arrivato
  • *
  • Post: 42
  • Respect: +1
    • Mostra profilo
  • Dispositivo Android:
    Samsung next
  • Sistema operativo:
    Windows 7
Problema con zXing
« il: 02 Gennaio 2013, 11:47:46 CET »
0
Salve a tutti,
Come descritto sopra, ho un problema con zXing; mentre cerco di avviare la scannarizzazione mi appare il seguente messaggio (Barcode Scanner: Spiacenti, la fotocamera Android ha riscontrato un problema, Potrebbe essere necessario riavviare il dispositivo). Tale problema non mi è mai spuntato fuori fin'ora.
Andando sul Logcat, non mi appare nessun errore, a solo
Codice: [Seleziona]
01-02 11:39:37.363: I/PlatformSupportManager(981): Using implementation class com.google.zxing.client.android.common.executor.HoneycombAsyncTaskExecInterface of interface com.google.zxing.client.android.common.executor.AsyncTaskExecInterface for SDK 11
01-02 11:39:37.495: W/CaptureActivity(981): android.content.pm.PackageManager$NameNotFoundException: com.google.zxing.client.android
01-02 11:39:37.495: W/CaptureActivity(981):         at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:78)
01-02 11:39:37.495: W/CaptureActivity(981):         at com.google.zxing.client.android.CaptureActivity.showHelpOnFirstLaunch(CaptureActivity.java:690)
01-02 11:39:37.495: W/CaptureActivity(981):         at com.google.zxing.client.android.CaptureActivity.onCreate(CaptureActivity.java:153)
01-02 11:39:37.495: W/CaptureActivity(981):         at android.app.Activity.performCreate(Activity.java:4645)
01-02 11:39:37.495: W/CaptureActivity(981):         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1051)
01-02 11:39:37.495: W/CaptureActivity(981):         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1940)
01-02 11:39:37.495: W/CaptureActivity(981):         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2001)
01-02 11:39:37.495: W/CaptureActivity(981):         at android.app.ActivityThread.access$600(ActivityThread.java:129)
01-02 11:39:37.495: W/CaptureActivity(981):         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1153)
01-02 11:39:37.495: W/CaptureActivity(981):         at android.os.Handler.dispatchMessage(Handler.java:99)
01-02 11:39:37.495: W/CaptureActivity(981):         at android.os.Looper.loop(Looper.java:137)
01-02 11:39:37.495: W/CaptureActivity(981):         at android.app.ActivityThread.main(ActivityThread.java:4516)
01-02 11:39:37.495: W/CaptureActivity(981):         at java.lang.reflect.Method.invokeNative(Native Method)
01-02 11:39:37.495: W/CaptureActivity(981):         at java.lang.reflect.Method.invoke(Method.java:511)
01-02 11:39:37.495: W/CaptureActivity(981):         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
01-02 11:39:37.495: W/CaptureActivity(981):         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
01-02 11:39:37.495: W/CaptureActivity(981):         at dalvik.system.NativeStart.main(Native Method)
01-02 11:39:37.558: D/OpenGLRenderer(981): Flushing caches (mode 0)
01-02 11:39:37.659: I/PlatformSupportManager(981): Using implementation class com.google.zxing.client.android.camera.open.GingerbreadOpenCameraInterface of interface com.google.zxing.client.android.camera.open.OpenCameraInterface for SDK 9
01-02 11:39:37.691: I/GingerbreadOpenCamera(981): Opening camera #0
01-02 11:39:37.706: I/LGMDMUICameraAdapter(981): Camera open, camPid = 981
01-02 11:39:37.706: I/LGMDMUICameraAdapter(981): getCameraDisabled = false
01-02 11:39:37.730: W/CaptureActivity(981): Unexpected error initializing camera
01-02 11:39:37.730: W/CaptureActivity(981): java.lang.RuntimeException: Fail to connect to camera service
01-02 11:39:37.730: W/CaptureActivity(981):         at android.hardware.Camera.native_setup(Native Method)
01-02 11:39:37.730: W/CaptureActivity(981):         at android.hardware.Camera.<init>(Camera.java:305)
01-02 11:39:37.730: W/CaptureActivity(981):         at android.hardware.Camera.open(Camera.java:263)
01-02 11:39:37.730: W/CaptureActivity(981):         at com.google.zxing.client.android.camera.open.GingerbreadOpenCameraInterface.open(GingerbreadOpenCameraInterface.java:57)
01-02 11:39:37.730: W/CaptureActivity(981):         at com.google.zxing.client.android.camera.CameraManager.openDriver(CameraManager.java:78)
01-02 11:39:37.730: W/CaptureActivity(981):         at com.google.zxing.client.android.CaptureActivity.initCamera(CaptureActivity.java:719)
01-02 11:39:37.730: W/CaptureActivity(981):         at com.google.zxing.client.android.CaptureActivity.surfaceCreated(CaptureActivity.java:401)
01-02 11:39:37.730: W/CaptureActivity(981):         at android.view.SurfaceView.updateWindow(SurfaceView.java:592)
01-02 11:39:37.730: W/CaptureActivity(981):         at android.view.SurfaceView.access$000(SurfaceView.java:87)
01-02 11:39:37.730: W/CaptureActivity(981):         at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:181)
01-02 11:39:37.730: W/CaptureActivity(981):         at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:590)
01-02 11:39:37.730: W/CaptureActivity(981):         at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1638)
01-02 11:39:37.730: W/CaptureActivity(981):         at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2469)
01-02 11:39:37.730: W/CaptureActivity(981):         at android.os.Handler.dispatchMessage(Handler.java:99)
01-02 11:39:37.730: W/CaptureActivity(981):         at android.os.Looper.loop(Looper.java:137)
01-02 11:39:37.730: W/CaptureActivity(981):         at android.app.ActivityThread.main(ActivityThread.java:4516)
01-02 11:39:37.730: W/CaptureActivity(981):         at java.lang.reflect.Method.invokeNative(Native Method)
01-02 11:39:37.730: W/CaptureActivity(981):         at java.lang.reflect.Method.invoke(Method.java:511)
01-02 11:39:37.730: W/CaptureActivity(981):         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
01-02 11:39:37.730: W/CaptureActivity(981):         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
01-02 11:39:37.730: W/CaptureActivity(981):         at dalvik.system.NativeStart.main(Native Method)



Sapreste aiutarmi?
Grazie in anticipo.
Paolo

Offline Aryon Solutions S.r.l. - Paolo

  • Nuovo arrivato
  • *
  • Post: 42
  • Respect: +1
    • Mostra profilo
  • Dispositivo Android:
    Samsung next
  • Sistema operativo:
    Windows 7
Re:Problema con zXing
« Risposta #1 il: 02 Gennaio 2013, 11:53:38 CET »
0
Okk ho risolto, mi ero dimenticato di mettere nel manifest <uses-permission android:name="android.permission.CAMERA" />