Skip to content

Instantly share code, notes, and snippets.

@fabdarice
Created October 30, 2015 11:59
Show Gist options
  • Save fabdarice/50a5f983a7d057aef61b to your computer and use it in GitHub Desktop.
Save fabdarice/50a5f983a7d057aef61b to your computer and use it in GitHub Desktop.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.challfie.android/com.Challfie.android.challfiefragment.AddChallfieTakePictureActivity}: java.lang.RuntimeException: Fail to connect to camera service
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2305)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2365)
at android.app.ActivityThread.access$800(ActivityThread.java:148)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5272)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:909)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704)
Caused by: java.lang.RuntimeException: Fail to connect to camera service
at android.hardware.Camera.<init>(Camera.java:564)
at android.hardware.Camera.open(Camera.java:393)
at com.Challfie.android.challfiefragment.AddChallfieTakePictureActivity.initCamera(AddChallfieTakePictureActivity.java:84)
at com.Challfie.android.challfiefragment.AddChallfieTakePictureActivity.onCreate(AddChallfieTakePictureActivity.java:66)
at android.app.Activity.performCreate(Activity.java:5977)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2258)
... 10 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment