private void prepareDirectory(String path){
  File dir=new File(path);
  if (!dir.exists()) {
    if (!dir.mkdirs()) {
      Log.e(TAG,"ERROR: Creation of directory " + path + " failed, check does Android Manifest have permission to write to external storage.");
    }
  }
 else {
    Log.i(TAG,"Created directory " + path);
  }
}

private void prepareDirectory ( String path ) { File dir = new File ( path ) ; if ( ! dir . exists ( ) ) { if ( ! dir . mkdirs ( ) ) { Log . e ( TAG , "ERROR: Creation of directory " + path + " failed, check does Android Manifest have permission to write to external storage." ) ; } } else { Log . i ( TAG , "Created directory " + path ) ; } }
prepare directory on external storage
