本文介绍了安卓:.nomedia被忽略,图像仍然会出现在画廊的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立其下载图片来自网络的应用程序,并将它们存储到SD卡我的,为了让他们在画廊看不见我把这个行生成.nomedia文件:

I'm building an application which download images from the web and store them into my SDCard, in order to make them invisible in the gallery I put this line to generate a .nomedia file:

FileWriter f = new FileWriter("/sdcard/Android/data/CopyImage/cache/.nomedia");

应用程序可以成功下载图像,并在同一个文件夹中的文件.nodata,但事情是,图像仍出现在画廊。

the application can successfully download the image and make the .nodata file on the same folder, but the thing is, the image is still appear on the gallery.

怎么可能?
有谁能够给我一个解决方案吗?

How could that be?Can anybody provide me a solution?

非常感谢你。

推荐答案

添加一个。到文件夹的名称,而不是开始。

Add a "." to the beginning of folder name instead.

BTW哪个电话是给U该问题。我的猜测是,乌尔看到在画廊旧的缓存文件

BTW which phone is giving u this issue. My guess is that ur seeing old cached files in the Gallery

这篇关于安卓:.nomedia被忽略,图像仍然会出现在画廊的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 12:04