Java will help you getting rid of un-used memory if these objects are no 
longer referenced. But if you create too many objects, objects that are too 
big or a combination of both, you have a good chance of hitting 
Out-Of-Memory errors/exceptions. Are you using/loading images, sounds or 
other resources that are memory-hungry. If so, try to limit the memory, the 
size of your resources. E.g. never load a full-sized image unless it's 
absolutely necessary. Load an image with the size that fits your UI (e..g 
don't load a 2000x3000 pixel image if you want to show it in a view that is 
never larger than 400x600 pixels...)

-- 
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

Reply via email to