This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 22nd, 2012  |  syntax: None  |  size: 0.35 KB  |  views: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. String folderPath = "AllAroundMe/Images";
  2.               File file = new File(Environment.getExternalStorageDirectory(), folderPath);
  3.           if(!file.exists())
  4.           {
  5.                   Log.d(TAG, "FOLDERS NOT EXIST");
  6.                         if(file.mkdirs())
  7.                         Log.d("MyTag","Created folders succefully");
  8.                         else {
  9.                                         Log.d(TAG,"didnt create");
  10.                                 }
  11.           }
clone this paste RAW Paste Data