简体   繁体   English

有没有办法用密码保护文件夹?

[英]Is there a way to protect the folder with password?

有没有办法在Android中以编程方式用密码保护文件夹?

By default, files saved to the internal storage are private to your application and other applications cannot access them (nor can the user). 默认情况下,保存到内部存储器的文件是您的应用程序专用的,其他应用程序无法访问它们(用户也不能访问它们)。

http://developer.android.com/guide/topics/data/data-storage.html#filesInternal http://developer.android.com/guide/topics/data/data-storage.html#files内部

AFAIK, No, you cannot. AFAIK,不,您不能。

You could zip the contents of the folder and store it as an Passworded Zip File. 您可以压缩文件夹的内容并将其存储为“密码压缩文件”。 That's the closest solution i can think of. 这是我能想到的最接近的解决方案。 ofcourse, the folder won't exist anymore. 当然,该文件夹将不再存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM