Friday, 16 August 2013

How to creat Hidden Directory Android



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.