I'm currently trying to get the camera working in my app and I'm having issues with the whole camera.release()
thing; I'm doing pretty complicated stuff and there's no clear cut way to simply call camera.release()
so I have to keep trying new ways, but every time I get it wrong my app crashes (as expected), leaving the camera not released. So, in order to be able to test my app again, I need to restart my phone in order to refresh the camera.
Is there any way to release the camera through the terminal or DDMS, or is the only way to release it by restarting my phone? It's getting pretty old, especially when a tiny mistake leads to wasted time waiting for my phone to restart.
Thanks!