We can create Hidden Directory Very Simple As
File direct = new File(Environment.getExternalStorageDirectory()
+
"/.test");
if (!direct.exists()) {
if (direct.mkdir()) {
// directory is
created;
}
}
above code is create folder with name ".test" (in SD CARD) then save your data(file, video.. whatever) in this folder user cant access it in normal situations because its hidden.
No comments:
Post a Comment