java.lang.RuntimeException: Camera is being used after Camera.release() was called

Stack Overflow | DAVIDBALAS1 | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Camera is being used after Camera.release was called android

    Stack Overflow | 9 months ago | DAVIDBALAS1
    java.lang.RuntimeException: Camera is being used after Camera.release() was called
  2. 0

    Android - Camera API takes too much time to capture and save image

    Stack Overflow | 1 month ago | Ayusch
    java.lang.RuntimeException: Camera is being used after Camera.release() was called
  3. 0

    problem with taking pictures using the android camera

    Stack Overflow | 6 years ago | adrian
    java.lang.RuntimeException: takePicture failed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

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

    Camera is being used after Camera.release() was called

    at android.hardware.Camera.native_takePicture()
  2. Android Platform
    Camera.takePicture
    1. android.hardware.Camera.native_takePicture(Native Method)
    2. android.hardware.Camera.takePicture(Camera.java:1523)
    3. android.hardware.Camera.takePicture(Camera.java:1468)
    3 frames
  3. davidandguy.com.selfielightcamera
    MainActivity$1$1.onFinish
    1. davidandguy.com.selfielightcamera.MainActivity$1$1.onFinish(MainActivity.java:65)
    1 frame
  4. Android Platform
    ActivityThread.main
    1. android.os.CountDownTimer$1.handleMessage(CountDownTimer.java:127)
    2. android.os.Handler.dispatchMessage(Handler.java:102)
    3. android.os.Looper.loop(Looper.java:158)
    4. android.app.ActivityThread.main(ActivityThread.java:7224)
    4 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
    2 frames