[android-developers] Listbox with ImageView and heapspace
I have a listbox which has an imageview in every item, the bitmaps for the images are loaded in the background as the user brings the items into view. The images are queued for loading in the background as the user scrolls through the list items.
If I have a large list and I take my time scrolling through them, everything works great, however if I race through the list to the end, it will always crash at some point as it runs out of heap space.
My guess is that so many bitmaps are in the queue and the resource allocated for each is not being re-cycled fast enough. I am not sure how I can improve this such that the resources are free'd as soon as they are no longer required.
--
Regards,
Sy
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home