有照片的SD卡上不显示文件夹 [英] Hide folder with photos on sd card

查看:151
本文介绍了有照片的SD卡上不显示文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的图片保存到我的SD卡上的应用程序。当我去画廊我可以看到图片。我如何保存这是我在应用程序中使用SD卡上的照片,但他们必须在画廊是看不见的电话。

I save pictures to my application on sd card. When I go to gallery I can see that pictures. How I can save pictures which I use in application on sd card but they must be invisible in gallery from phone.

推荐答案

包括空文件,名为.nomedia在外部文件目录下(注意文件名中的点preFIX)。这将prevent Android的媒体扫描仪读取媒体文件,并将它们包括像画廊或音乐应用程序。

Include an empty file named .nomedia in your external files directory (note the dot prefix in the filename). This will prevent Android's media scanner from reading your media files and including them in apps like Gallery or Music.

这篇关于有照片的SD卡上不显示文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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