android-smart-image-view icon indicating copy to clipboard operation
android-smart-image-view copied to clipboard

Out of memory when loading in big list view

Open BuddhaSource opened this issue 13 years ago • 6 comments

I am getting out of memory exception when I have long list of big images in a list view.

I was wondering if we can make the bitmap purge able then can we solve OOM errors.

BuddhaSource avatar Oct 19 '12 13:10 BuddhaSource

i got the same problem =(

alejandrorangel avatar Oct 30 '12 04:10 alejandrorangel

and i.

ggoyea avatar Nov 13 '12 02:11 ggoyea

the same to me :(

nguyenngocfu avatar Dec 13 '12 02:12 nguyenngocfu

How about adding recycle flag to bitmap? This should reduce the memory print and bitmap will be recycled.

BuddhaSource avatar Dec 13 '12 06:12 BuddhaSource

Thanks for your reply!

I used recycle bitmap and try catch to avoid crashing app.

Now the problem is solved. On Dec 13, 2012 1:57 PM, "Siddharth Menon" [email protected] wrote:

How about adding recycle flag to bitmap? This should reduce the memory print and bitmap will be recycled.

— Reply to this email directly or view it on GitHubhttps://github.com/loopj/android-smart-image-view/issues/7#issuecomment-11324415.

nguyenngocfu avatar Dec 13 '12 13:12 nguyenngocfu

That is superb, if you have modified the lib then can you share your changes? I have never created .jar from library project like this one.

BuddhaSource avatar Dec 14 '12 06:12 BuddhaSource