I been studying your code for almost 2 weeks already and I was able understand the flow of it. But sometimes this error occur when I click CAPTURE. Have you ever experience this error ?
CameraException(error, Attempt to invoke virtual method 'int android.hardware.camera2.CameraCaptureSession.capture(android.hardware.camera2.CaptureRequest, android.hardware.camera2.CameraCaptureSession$CaptureCallback, android.os.Handler)' on a null object reference)
Hello thank you so much for your code.
I been studying your code for almost 2 weeks already and I was able understand the flow of it. But sometimes this error occur when I click CAPTURE. Have you ever experience this error ?
CameraException(error, Attempt to invoke virtual method 'int android.hardware.camera2.CameraCaptureSession.capture(android.hardware.camera2.CaptureRequest, android.hardware.camera2.CameraCaptureSession$CaptureCallback, android.os.Handler)' on a null object reference)