在加载图像之前,我调用了如下代码:
String url = getUrlImageIcon();
MemoryCacheUtil.removeFromCache(url, ImageLoader.getInstance().getMemoryCache());
DiscCacheUtil.removeFromCache(url, ImageLoader.getInstance().getDiscCache());
ImageLoader.getInstance().displayImage(url, imageView, listener);
我的问题是,这并没有从缓存中删除图像,图像加载器仍然显示旧图像...而旧的图像甚至在服务器上不存在...
我该如何正确地删除图像的所有缓存文件?
PS:我正在使用最新版本1.9.1...