I wrote an app the scans your moles in real time using augmented reality technology. On a decent android device it can get process at about 5 frames per second. It works really well, using frames given to me by the PreviewCallback method from the camera.
When i take the picture on the camera, i get out of memory exceptions. Now i clean up all bitmaps i use using the .Recycle but unless I call System.gc();
before i take the photo, i get the exceptions. Secondly this error is deep inside the Google android stack, and actually results in the Camera being unavailable to any other app, even if i stopped my app from running completely.
I find i strange that the google API would allow my code (Perhaps not great code) to physically disable hardware on the device.
Any suggestions other than keep calling System.gc()?
The app can be found on the android store called "Doctor Mole"