I am using images in a listview, I would have hoped that the images
would be released as the items change, I only have 2 images on view at a
time.
I load a thumbnail version of the image for the listviews which is a
fraction of the original size. If I hit a limit on memory I would like
to handle that limit myself and take appropriate action rather than a
forced close down.
On 25/07/2011 7:29 PM, Streets Of Boston wrote:
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
--
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