java.lang.RuntimeException: startPreview failed

Stack Overflow | Ashvani Sharma | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Capturing image from custom camera

    Stack Overflow | 7 months ago | Ashvani Sharma
    java.lang.RuntimeException: startPreview failed
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. emmanuelstroem 1 times, last 10 months ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.RuntimeException

    startPreview failed

    at android.hardware.Camera.startPreview()
  2. Android Platform
    Camera.startPreview
    1. android.hardware.Camera.startPreview(Native Method)
    1 frame
  3. com.example.abc
    Custom_CameraActivity.onClick
    1. com.example.abc.Custom_CameraActivity.onClick(Custom_CameraActivity.java:237)
    1 frame
  4. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:4471)
    2. android.view.View$PerformClick.run(View.java:18778)
    3. android.os.Handler.handleCallback(Handler.java:808)
    4. android.os.Handler.dispatchMessage(Handler.java:103)
    5. android.os.Looper.loop(Looper.java:193)
    6. android.app.ActivityThread.main(ActivityThread.java:5304)
    6 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
    2 frames
  7. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame