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() #282

Open
jinguangyue opened this issue Apr 16, 2016 · 2 comments
Open

Method called after release() #282

jinguangyue opened this issue Apr 16, 2016 · 2 comments

Comments

@jinguangyue
Copy link

When I open the camera, call setUpCamera. sometimes appear this error.

This is My releaseCamera;

private void releaseCamera() {
if (mCameraInstance != null) {
mCameraInstance.setPreviewCallback(null);
mCameraInstance.stopPreview();
mCameraInstance.release();
mCameraInstance = null;
}
}

@wakedeer
Copy link

try to add all metods from onCreate() to onStart(). i know it's not correct, but it will work.

@jinguangyue
Copy link
Author

oh thanks. My method of setUpCamera is in OnResume(), It's work normal most. but sometimes there has the error "Method called after release() ".

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