-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method called after release() #3
Comments
Hi! thanks for the feedback. I'm going to review what's happening when calling activity two or more times, maybe resources release are needed as you noticed in onSurfaceDestroyed() method. If so, I will merge your code. Thanks again, |
danicomas
added a commit
to danicomas/QRCodeReaderView
that referenced
this issue
May 24, 2014
Applied @glomadrian solution. dlazaro66#3
Accepted pull request from @danicomas thanks you both for your help! |
AndreiFlorea04
added a commit
to AndreiFlorea04/QRCodeReaderView
that referenced
this issue
Dec 19, 2023
Applied @glomadrian solution. dlazaro66/QRCodeReaderView#3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When i call for second time to the activy that implements the QRCodeReaderView, Crash throwing this exception Method called after release().
I solved it adding this lines in QRCodeReaderView -> onSurfaceDestroyed() method:
mCameraManager.getCamera().setPreviewCallback(null);
mCameraManager.getCamera().stopPreview();
mCameraManager.getCamera().release();
mCameraManager.closeDriver();
Maybe some calls are redundant.
The text was updated successfully, but these errors were encountered: