Open akash09766 opened 8 years ago
This is the way:
public boolean isImageInCache(String imageUrl) { List<Bitmap> cachedBitmapsForImageUri = MemoryCacheUtils.findCachedBitmapsForImageUri(imageUrl, ImageLoader.getInstance().getMemoryCache()); File inCache = DiskCacheUtils.findInCache(imageUrl, ImageLoader.getInstance().getDiskCache()); return cachedBitmapsForImageUri != null && !cachedBitmapsForImageUri.isEmpty() || inCache != null && inCache.length() > 0; }
can achieve this kind of functionality : like for ex : boolean stat = imageloader.isImageCache(url);
if image is already cache some where it will return true otherwise false.