QRCodeReaderView
QRCodeReaderView copied to clipboard
Stoping camera does not work
Force stoping camera does not working for me. If we stop camera and does not pause activity, CameraManager.onSurfaceChanged callback still fires and CameraManager startPreview method is being called
Can you provide more info about what do you want to achieve?
In fact as a result this behavior I suppose, leads to crash. The case you can face crash:
- Open you activity with View installed
- Start preview
- Open camera app
- Reopen you activity
Result will be a crash, I think, because lib does not release camera. I fixed this bug in my local copy of library.
Actually I've noticed this problem too (the original one of the post). once the activity start in OnResume
i call stopCamera()
but after that when the CameraManager.onSurfaceChanged
is called the QRCodeReaderView
recalls your internal startPreview()
method, which turns on the camera.
How did you solved that? :(