java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.johncarlo.flashlight/com.example.johncarlo.flashlight.MainActivity}: java.lang.RuntimeException: Fail to connect to camera service

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • QR & Barcode scanner + Flashlight
    via GitHub by neruja
    ,
  • Fail to connect to camera service on G1
    via Stack Overflow by Bill Ostaski
    ,
  • Android Camera fail for second shot
    via by Unknown author,
  • Failed to open a camera
    via GitHub by Dimezis
    ,
  • Camera fails to connect after the first use
    via Stack Overflow by Nodoid
    ,
    • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.johncarlo.flashlight/com.example.johncarlo.flashlight.MainActivity}: java.lang.RuntimeException: Fail to connect to camera service at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2186) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2236) at android.app.ActivityThread.access$600(ActivityThread.java:145) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5099) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:803) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:570) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.RuntimeException: Fail to connect to camera service at android.hardware.Camera.native_setup(Native Method) at android.hardware.Camera.<init>(Camera.java:365) at android.hardware.Camera.open(Camera.java:338) at com.example.johncarlo.flashlight.MainActivity.onCreate(MainActivity.java:49) at android.app.Activity.performCreate(Activity.java:5117) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2150) ... 11 more

    Users with the same issue

    Aravind
    Aravind3 times, last one,
    Reich
    Reich8 times, last one,
    gamebusterz
    gamebusterz2 times, last one,
    pranavprakash
    pranavprakash14 times, last one,
    Unknown visitor2 times, last one,
    20 more bugmates