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.
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
.Memory cache can contain several bitmaps (diffenrent sizes) for one image. So memory cache use special keys, not image urls.
I think you can create a simple method in your utility class like this:
and Use it like:
It should be MemoryCacheUtils, so you should use
For disk cache use below code
Sometimes, when using the Universal Image Loader library, there comes a time where the loader takes a while to verify whether the remote image has been already loaded in your cache. To load the cache file directly, you can use the following method to check whether a local copy of the remote file has already been made:
check it hereenter link description here