机器人:如何从出现在照片模式显示隐藏文件夹出现在、机器人、文件夹、模式

2023-09-04 23:55:49 作者:属于我的那个人

我有一个会在SD卡的文件夹的应用程序。在那之后,我做几个操作这可能导致存储在我的文件夹不同的媒体文件,图形。问题是,该文件夹是则可见在廊部,其是不适合的。如何隐藏文件夹或文件夹,我的出现在画廊中的内容?

I have an application that creates a folder in the sd-card. After that, I do several operations which may result in storing different media files, graphics in my folder. The problem is that this folder is then visible in the Gallery section which is not appropriate. How can I hide the folder or the contents of my folder from appearing in the Gallery?

期待的回应 谢谢

推荐答案

将一个名为 .nomedia 文件夹中的文件。这可以是一个零字节的文件,如果你想 - 名称是最重要的

Put a file named .nomedia in the folder. This can be a zero-byte file if you want -- the name is what matters.