Can I create password protected folder in Android?
File nf = new File("Folder");
nf.mkDire();
First, new File("Folder")
has no meaning in Android. Always use some method to get at a root location, whether that is for internal storage or external storage .
Second, you cannot create a password-protected folder in Android at the OS level. You are welcome to store files in internal storage, in which case they are only accessible via your app, which can require a password (exception: people who root their devices can get at the files directly).
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.