简体   繁体   中英

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

AFAIK, No, you cannot.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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