I ran in to this issue too. If you release() your Camera object during surfaceDestroyed you will not get this exception. Using the CameraPreview.java as an example I now have: mCamera.stopPreview(); mCamera.release(); mCamera = null;
It works great and the app can restart properly. On Jun 17, 8:23 am, Boshik <[email protected]> wrote: > Hi, > > After a few weeks on market with my app (Ghosts AR) I found few > interesting issues coming from the users who installed the program. On > some of the devices my application fails with exception: > > java.lang.RuntimeException: Out of memory > at android.hardware.Camera.native_setup(Native Method) > at android.hardware.Camera.<init>(Camera.java:82) > at android.hardware.Camera.open(Camera.java:64) > > Strange that I'm personally never got it on my G1 (1.5 firmware). > > Any ideas? > > Thanks, > Alex --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

