Reputation: 523
I am using listview to display facebook profile picture,name,message,postedpicture.
I used scrollviewListener to load the next page data.But when I scrolled fastly,without waiting to load the data completely I am getting java.lang.OutOfMemoryError.bitmap size exceeds VM budget.
I am getting this error at my ImageLoader class where the bitmap is returned.Did I need to change anything to deallocate memory.
The most important is I am calling another webservice when listview scroll reaches the bottom of screen.
Upvotes: 1
Views: 676
Reputation: 38168
You should have a look at Displaying Bitmaps Efficiently of Android Documentation site.
They dedicate a few pages to this exact problem : java.lang.OutofMemoryError: bitmap size exceeds VM budget.
Upvotes: 1