Skip to content Skip to sidebar Skip to footer

Out Of Memory Error Due To Large Number Of Image Thumbnails To Display

The following codes were used to retrieve all photos for the purpose of displaying on gridview. However, if i have 1000 photos, it would result in out of memory error. Is there any

Solution 1:

You're running out of memory because you're loading lots of bitmaps that take up lots of memory. The simple (and correct) answer is: don't load them all at once. Instead you should load each image in the adapter as necessary.


Post a Comment for "Out Of Memory Error Due To Large Number Of Image Thumbnails To Display"