Using System.gc() helped me with my image editing program. But it is NOT full proof.
This is what I do: When ma app no longer needs (a) bitmap(s), it calls *recycle()* (this will clean up the memory - image data - that is part of your process, but not part of the DalvikVM), nulls the Bitmap(s) references and calls System.gc(). (Pre Android 3.0), bitmap memory (the memory holding the raw image data) is not 'seen' by the DalvikVM. It may not know that your app is running low on memory and it won't call the garbage collector to try to reclaim some memory before allocating it --> OOM that was not really necessary. -- 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

