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

Stack Overflow | Ayusch | 1 month 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

    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
  2. 0

    Take Picture failed android

    Stack Overflow | 5 months ago | FatiShubbar
    java.lang.RuntimeException: takePicture failed
  3. 0

    Android App crashes after taking a single picture?

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

    Automated exception search integrated into your IDE

  5. 0

    App crashes when taking photos quickly

    Stack Overflow | 6 months ago | Ddddddd
    java.lang.RuntimeException: takePicture failed
  6. 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
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. com.example.ayusch
    UploadPrescription$1.onClick
    1. com.example.ayusch.medomo.UploadPrescription$1.onClick(UploadPrescription.java:73)
    1 frame
  4. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:5714)
    2. android.widget.TextView.performClick(TextView.java:10926)
    3. android.view.View$PerformClick.run(View.java:22589)
    4. android.os.Handler.handleCallback(Handler.java:739)
    5. android.os.Handler.dispatchMessage(Handler.java:95)
    6. android.os.Looper.loop(Looper.java:148)
    7. android.app.ActivityThread.main(ActivityThread.java:7325)
    7 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