Android : universal image loader out of memory

on Sunday, April 19, 2015


I get OOM error when the screen of more than 10 images at a time. My configs:



DisplayImageOptions options = new DisplayImageOptions.Builder()
.imageScaleType(ImageScaleType.EXACTLY)
.cacheOnDisk(true)
.bitmapConfig(Bitmap.Config.RGB_565)
.cacheInMemory(false)
.build();

ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(this)
.diskCacheSize(500 * 1024 * 1024)
.threadPoolSize(5)
.build();

0 comments:

Post a Comment