java.lang.RuntimeException

startPreview failed

Samebug tips0

There are no available Samebug tips.

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

Solutions on the web67

  • via Stack Overflow by Ashvani Sharma
    ,
  • Stack trace

    • java.lang.RuntimeException: startPreview failed at android.hardware.Camera.startPreview(Native Method) at com.example.abc.Custom_CameraActivity.onClick(Custom_CameraActivity.java:237) at android.view.View.performClick(View.java:4471) at android.view.View$PerformClick.run(View.java:18778) at android.os.Handler.handleCallback(Handler.java:808) at android.os.Handler.dispatchMessage(Handler.java:103) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:5304) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640) at dalvik.system.NativeStart.main(Native Method)

    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 visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    emmanuelstroememmanuelstroem
    1 times, last one,