jetpacapp / DeepBeliefSDK

The SDK for Jetpac's iOS Deep Belief image recognition framework
Other
2.86k stars 437 forks source link

AndroidExample crashes when you stop viewing the camera #9

Open JonnoFTW opened 10 years ago

JonnoFTW commented 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:

https://github.com/jetpacapp/DeepBeliefSDK/blob/master/examples/AndroidExample/src/com/example/cam/CamTestActivity.java#L93

asyncore commented 10 years ago

Thanks for debugging! You probably meant: camera.setPreviewCallback(null);

JonnoFTW commented 10 years ago

I did mean that, I've updated the issue, thanks.