Skip to content
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

Closed
glomadrian opened this issue Jan 25, 2014 · 2 comments
Closed

Method called after release() #3

glomadrian opened this issue Jan 25, 2014 · 2 comments

Comments

@glomadrian
Copy link

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.

@dlazaro66
Copy link
Owner

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,
David.

danicomas added a commit to danicomas/QRCodeReaderView that referenced this issue May 24, 2014
@dlazaro66
Copy link
Owner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants