如何隐藏SD卡在Android上的文件夹 [英] How to hide the folder of sdcard in android

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

问题描述

可能重复:结果
  如何隐藏文件夹中的android系统 SD卡

我有我想隐藏其中包含一些视频的文件夹,住在设备的SD卡出于安全考虑一个问题,我必须以编程方式做同样的。我不知道这将如何实现?请建议正确的结果。

I have a problem that I want to hide a folder which contain some videos, resided in sdcard of device for security reasons, and I have to do the same programmatically. I don't know how it will be achieved? Please suggest the right result.

先谢谢了。

推荐答案

请一个文件夹或文件 为preFIX 以文件夹或文件名。

Make a folder or file with . as prefix to folder or file name.

编辑:由于Android是基本的Linux同样的事情发生在隐藏的目录和文件,只需创建一个目录或文件,用'。' preFIX名。

As android is basic linux the same thing happen in hide directory and files, just create a directory or file with'.' prefix name.

因此​​,它在所有Android API版本的工作。其次的东西有可用于Android也显示这种类型的隐藏的目录和文件的一些浏览器的工具。因此,它不是一个安全的方式,

So its worked in all android api version. And second things there are some browser tool available for android which also display this type of hidden directories and files. So its not a secure way,

有关在存储内部存储的数据在你的应用程序包的很好,但是从这个如果设备是植根那么任何人都可以访问它。

For storing data in internal storage in your application's package its fine, but from this if device is rooted then anyone can access it.

所以,唯一的办法是为您的文件和目录使用的加密/解密。

So, the only way is use encryption/decryption for your files and directories.

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

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