I guess the title says it all. I tried:
imageLoader.getMemoryCache().get(key);
with the image uri as key, but it always return null
although I enabled caching in the config.
Use MemoryCacheUtils
.
MemoryCacheUtils.findCachedBitmapsForImageUri(imageUri, ImageLoader.getInstance().getMemoryCache());
Memory cache can contain several bitmaps (diffenrent sizes) for one image. So memory cache use special keys, not image urls.
It should be MemoryCacheUtils, so you should use
MemoryCacheUtils.findCachedBitmapsForImageUri(imageUri, ImageLoader.getInstance().getMemoryCache());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With