I am using the universal image loader to display the images as thumbnail in ListView however i am getting the out of memory error and when i scroll the list than the new vie
try next (all of them or several):
Reduce thread pool size in configuration (.threadPoolSize(...)). 1 - 5 is recommended. Use
.bitmapConfig(Bitmap.Config.RGB_565)
in display options. Bitmaps in RGB_565 consume 2 times less memory than in ARGB_8888. Use
.memoryCache(new WeakMemoryCache())
in configuration or disable caching in memory at all in display options (don't call .cacheInMemory()). Use
.imageScaleType(ImageScaleType.IN_SAMPLE_INT)
in display options. Or try
.imageScaleType(ImageScaleType.EXACTLY).
Avoid using RoundedBitmapDisplayer. It creates new Bitmap object with ARGB_8888 config for displaying during work.