机器人:如何从出现在照片模式显示隐藏文件夹 [英] android: how to hide folder from appearing in the Gallery

查看:179
本文介绍了机器人:如何从出现在照片模式显示隐藏文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个会在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.

这篇关于机器人:如何从出现在照片模式显示隐藏文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆