do all the thumbnails have to be on the screen at once? if not,
consider keeping the images as their compressed equivalents (JPEG
byte arrays, etc), then use a ListView as it will recycle views
that's not currently visible, allowing you to inflate JPEGs into
Bitmaps and then throw the Bitmaps away appropriately.
i have ListViews which have thumbnails, and i use this scheme with no
memory problems at all.
...and whether you have to display them all at once or not, consider
using BitmapFactory decoding options to resample the images to a
better size. maybe the images coming in are much bigger than the
thumbnail view needs them to be?
hth
My application loads 12 100x100 thumbnail images from the web using
the code below. I then display the thumbnails in a GridView using an
ImageAdapter derived from BaseAdapter. I'm running into memory issues
because each of the thumbnails is held in memory as a Bitmap.
This seems like a fairly straightforward application (display a
gallery of thumbnails from the web), can some give me advice on how to
reduce my memory needs? Maybe there's a better way to display web
images in a GridView that doesn't involve downloading and storing each
one as a Bitmap?
--
jason.vp.engineering.particle
--
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