I am loading thumbnails in an ListActivity (with BaseAdapter).
I get the thumbnail urls from a webservice, it could be up to 600 thumbs (or more - depends on user input) at 3-4kilobytes .
The thumbnails are stored in an ArrayList as bitmaps.
When the user makes a new search, I iterate over the old result list and call bitmap.recycle(); and finally list.clear(). (So I don't think I am leaking any resources)
But after a few searches I frequently get an OutOfMemoryErrror: bitmap size exceeds VM budget.
How can I fix it?
I thought about saving the thumbs on sdcard and only load in the BaseAdapter
public View getView(int position, View convertView, ViewGroup parent) method.
Is this slow or battery consuming?
What is the best way to handle this?