[Q] Augmented Reality on android device

Hi,

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"

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by francisco40
4 hours ago
Last post by elias48
1 hour ago
Last post by fisher.delphine
1 hour ago
Last post by neoma.mohr
3 hours ago
Last post by kevin.goyette
1 hour ago
Last post by angela64
2 hours ago
Last post by homenick.bernhard
3 hours ago
Last post by spencer90
3 hours ago
Last post by elias.stark
2 hours ago
Last post by klein.bennie
2 hours ago