Android 2.1 – I’m trying to work with the Camera via a widget.
My widget sets up and calls mCamera = Camera.open();, I can do everything with the camera, but when I go to release the camera via a 2nd widget click, mCamera.release(); throws a NullPointerException.
How much I find out why that is?
Are you sure that mCamera isn’t null?
That’s the only reason I can imagine why that specific statement would return a NullPointerException