I am using universal image loader library for loading the images in my listview. I want to clear the cache for all the images at once.
I know how to do it for one image at a time.
MemoryCacheUtils.removeFromCache("file://"+path, ImageLoader.getInstance().getMemoryCache());
DiskCacheUtils.removeFromCache("file://"+path, ImageLoader.getInstance().getDiskCache());
How can I do this?
You can do that by:
imageLoader.clearMemoryCache();
or
imageLoader.getDiskCache().clear();
it depends on your configuration.