java.lang.RuntimeException

Fail to connect to camera service

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web167

  • via Stack Overflow by Complexity
    ,
  • Stack trace

    • java.lang.RuntimeException: Fail to connect to camera service at android.hardware.Camera.<init>(Camera.java:511) at android.hardware.Camera.open(Camera.java:353) at com.google.zxing.client.android.camera.open.OpenCameraInterface.open(OpenCameraInterface.java:83) at com.journeyapps.barcodescanner.camera.CameraManager.open(CameraManager.java:121) at com.journeyapps.barcodescanner.camera.CameraInstance$3.run(CameraInstance.java:158) at android.os.Handler.handleCallback(Handler.java:746) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.os.HandlerThread.run(HandlerThread.java:61)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    asvidasvid
    Once,
    AravindAravind
    3 times, last one
    ReichReich
    8 times, last one
    21 more bugmates