Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Universal image loader Android:通用图像下载器缓存路径_Universal Image Loader - Fatal编程技术网

Universal image loader Android:通用图像下载器缓存路径

Universal image loader Android:通用图像下载器缓存路径,universal-image-loader,Universal Image Loader,我使用UIL下载图像,我希望tht图像只保存在缓存中。因此,在配置中,我启用了cacheInMemory()选项。但当我在“设置”中查看我的应用程序信息时,它仍然显示0.00B。如果启用cacheInMemory()选项,我的图像将存储在何处 options = new DisplayImageOptions.Builder() .showStubImage(R.drawable.item_fine_dining).cacheInMemory().build(); Ima

我使用UIL下载图像,我希望tht图像只保存在缓存中。因此,在配置中,我启用了cacheInMemory()选项。但当我在“设置”中查看我的应用程序信息时,它仍然显示0.00B。如果启用cacheInMemory()选项,我的图像将存储在何处

options = new DisplayImageOptions.Builder()
            .showStubImage(R.drawable.item_fine_dining).cacheInMemory().build();
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(
            getApplicationContext()).threadPoolSize(3)
            .memoryCache(new WeakMemoryCache())
            .threadPriority(Thread.NORM_PRIORITY - 1)
            .denyCacheImageMultipleSizesInMemory().enableLogging()
            .discCacheFileNameGenerator(new HashCodeFileNameGenerator())
            .enableLogging().build();

如果启用了
cacheInMemory()
选项,则图像将存储在内存中。文件系统(或SD卡)上有用于缓存的
cacheOnDics()
选项。但当我检查缓存大小时,它仍然显示为0.0B。这怎么可能?如何得到特定图像的路径。[保存的路径]。我要检查图像是否已保存。是否有此功能可用??提前谢谢:)我没有存SD卡。因此,我使用的显示选项如下:options=new DisplayImageOptions.Builder().showStubImage(R.drawable.item_fine_dinging.cacheInMemory().build();在配置中设置
.discCache(新的未限制的DDisccache(getApplicationContext().getCacheDir())