如何隐藏在SD卡中的Andr​​oid文件夹 [英] How to hide a folder in sdcard in android

查看:156
本文介绍了如何隐藏在SD卡中的Andr​​oid文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个Android应用程序,它创建一些文件夹,在启动应用程序,其中有图片,视频文件和子文件夹,我要隐藏这些文件夹和文件的创建时间。这些文件夹不应当被视为,当我们SD卡手动访问在设备

I am developing an android application, It create some folders at starting of the application, which have images, video files and subfolder, i want to hide these folders and files at creation time. these folder should not be seen, when we access sdcard manually in device.

推荐答案

如果你想隐藏的文件夹在Android或任何基于Linux的系统,只需添加为preFIX到文件夹或文件名。

If you want to hide folder in Android or any Linux based system just add . as prefix to folder or file name.

不过,如果你安装Windows机器上你的SD卡,那么这些文件夹将是可见的,与在前面的文件夹名称,作为一个正常的文件夹。

However if you mount your SD card on Windows machine then these folders will be visible, with the . in front of the folder name, as a normal folder.

这篇关于如何隐藏在SD卡中的Andr​​oid文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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