Open JonnoFTW opened 10 years ago
When the camera is used and then navigated away from by pausing the app, it crashes.
This can be fixed by adding the line:
camera.setPreviewCallback(null);
Before camera.release() in the onPause() method of the CamTestActivity here:
camera.release()
onPause()
CamTestActivity
https://github.com/jetpacapp/DeepBeliefSDK/blob/master/examples/AndroidExample/src/com/example/cam/CamTestActivity.java#L93
Thanks for debugging! You probably meant: camera.setPreviewCallback(null);
I did mean that, I've updated the issue, thanks.
When the camera is used and then navigated away from by pausing the app, it crashes.
This can be fixed by adding the line:
Before
camera.release()
in theonPause()
method of theCamTestActivity
here:https://github.com/jetpacapp/DeepBeliefSDK/blob/master/examples/AndroidExample/src/com/example/cam/CamTestActivity.java#L93