java.lang.RuntimeException: Fail to connect to camera service

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by nilvxingren
, 1 year ago
Fail to connect to camera service
via GitHub by a785436663
, 1 year ago
Fail to connect to camera service
via Stack Overflow by Thanos Tok
, 1 year ago
Fail to connect to camera service
java.lang.RuntimeException: Fail to connect to camera service
at android.hardware.Camera.(Camera.java:531)
at android.hardware.Camera.open(Camera.java:373)
at me.lake.librestreaming.client.RESVideoClient.createCamera(RESVideoClient.java:85)
at me.lake.librestreaming.client.RESVideoClient.prepare(RESVideoClient.java:48)
at me.lake.librestreaming.client.RESClient.prepare(RESClient.java:52)
at me.lake.librestreaming.sample.BaseStreamingActivity.onCreate(BaseStreamingActivity.java:102)
at me.lake.librestreaming.sample.HardStreamingActivity.onCreate(HardStreamingActivity.java:56)
at android.app.Activity.performCreate(Activity.java:6321)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2418)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2527)
at android.app.ActivityThread.access$1100(ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5568)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

Users with the same issue

20 times, 2 months ago
3 times, 5 months ago
8 times, 5 months ago
2 times, 9 months ago
14 times, 1 year ago
22 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.