0

I have been searching this for a while and have not been able to find a proper implementation. Basically what I want is to load all images from the SD card in a lazy adapter such that only those which are visible on screen are loaded and others get unloaded. I want this to avoid the famous OutOfMemory Exception as there could be tons of images on the SD card.

Can anybody suggest a proper way to do this, or guide me to a proper thread describing this problem?

Tobbe
  • 1,787
  • 3
  • 19
  • 37
King RV
  • 3,740
  • 1
  • 14
  • 16
  • To get you started look at http://mihaifonoage.blogspot.com/2009/11/displaying-images-from-sd-card-in.html – THelper Dec 14 '11 at 08:05
  • 2
    Look at this post: http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview – Warpzit Dec 14 '11 at 08:40
  • THelper, doesnt help it loads one at a time and also doesnt unload when the images are out of the screen visibility – King RV Dec 20 '11 at 13:50
  • Warpzit, i implemented the DrawableManager class but it the activity immediately shuts down showing "VM doesnt allow to allocate too high memory" in the logcat... – King RV Dec 20 '11 at 13:51

0 Answers0