android-camera2-secret-picture-taker
android-camera2-secret-picture-taker copied to clipboard
CameraDevice was already closed
Exception java.lang.IllegalStateException: CameraDevice was already closed at android.hardware.camera2.impl.CameraDeviceImpl.checkIfCameraClosedOrInError (CameraDeviceImpl.java:2228) at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureRequest (CameraDeviceImpl.java:789) at pk.com.informatica.inab.services.PictureCapturingServiceImpl.takePicture (PictureCapturingServiceImpl.java:256) at pk.com.informatica.inab.services.PictureCapturingServiceImpl.access$800 (PictureCapturingServiceImpl.java:53) at pk.com.informatica.inab.services.PictureCapturingServiceImpl$2.lambda$onOpened$0$pk-com-informatica-inab-services-PictureCapturingServiceImpl$2 (PictureCapturingServiceImpl.java:174) at pk.com.informatica.inab.services.PictureCapturingServiceImpl$2$$ExternalSyntheticLambda0.run at android.os.Handler.handleCallback (Handler.java:938) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loop (Looper.java:223) at android.app.ActivityThread.main (ActivityThread.java:7950) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:603) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:947)