Where is the Universal ImageLoader cache folder located?

Caching my generic ImageLoader doesn't seem to work. I wonder where the cache folder is. I found that there is a folder in my SD card:

data-> data-> id of my application-> cache-> uil-images

But it is empty. Here is my code:

        DisplayImageOptions displayOptions = new DisplayImageOptions.Builder()
                .cacheOnDisc(true)
                .cacheInMemory(false)
                .showStubImage(R.drawable.img_placeholder)
                .showImageForEmptyUri(R.drawable.img_placeholder)
                .showImageOnFail(R.drawable.img_placeholder)
                .bitmapConfig(Bitmap.Config.RGB_565)
                .displayer(new FadeInBitmapDisplayer(500))
                .build();

        ImageLoader imageLoader = ImageLoader.getInstance();
        imageLoader.init(ImageLoaderConfiguration.createDefault(this.context));
        imageLoader.displayImage(imgUrl, imageView, displayOptions);

Regardless, I set cacheInMemory to false or true, the result will be the same. Can someone explain what could be wrong with this? Thanks.

By the way, I'm using generic imageloader 1.8.6

+4
source share
1 answer

library/src/main/java/com/nostra13/universalimageloader/utils/StorageUtils.java :

  • SD-, , , /Android/data/[app_package_name]/cache/
  • /data/data/[app_package_name]/cache/.

- .

+2

Source: https://habr.com/ru/post/1529217/


All Articles