Skip to content Skip to sidebar Skip to footer

Android: How Do I Improve This Image Manager?

I have following code to load images. We load a lot of images on a GridView and we keep on running out of memory. What else can I do to reduce memory usage? Where in the code can I

Solution 1:

i recomend you Android Image Manager

http://code.google.com/p/android-image-manager/

it's fast, light, performant, efficient and very easy to use. in most cases all you have to do will be replacing android ImageView with ManagedImageView in your code or layouts.

it has some soffisticated options, which allow your application to balance between image quality, memory usage and performance. For example, wise combination will load more than 50MB of images at once and draw them faster than standard ImageView

list of all features is on project wiki

Solution 2:

I'm not seeing where the decoding of images from the http response is happening, but you might try using inSampleSize from BitmapFactory.Options to produce thumbnail images instead of full images.

This should probably happen as you store images into your cache. When you have an activity that needs the full image you could reload it from your file cache in its full glory.

Post a Comment for "Android: How Do I Improve This Image Manager?"