title: Android: mkdir not working
body: <p>I want to create <strong>MyFolder</strong> directory , but cannot to do it, tried different way, but no one working;
  In <strong>Androidmanifest.xml</strong> i have:</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="my.package" &gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
      &lt;uses-permission android:name="com.android.vending.BILLING" /&gt;
  
      &lt;application
      &lt;!---.....--&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p><strong>static class</strong>:</p>
  
  <pre><code>public static String FILES_DIR = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "MyFolder";
  </code></pre>
  
  <p><strong>Code</strong>:</p>
  
  <pre><code>File dir = new File(Constants.FILES_DIR);
  if (!dir.exists()) {
      dir.mkdir();
      Log.i("my tag", "isDirectory + " + dir.toString() + " | " + dir.exists() + " | " + dir.mkdir());
      dir = new File(Environment.getExternalStorageDirectory().getAbsolutePath(), "MyFolder");
      Log.i("my tag", "isDirectory + " + dir.toString() + " | " + dir.exists() + " | " + dir.mkdir());
      dir = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC), "MyFolder/");
      Log.i("my tag", "isDirectory + " + dir.toString() + " | " + dir.exists() + " | " + dir.mkdir());
  
      Log.i("my tag", "Status + " + Environment.getExternalStorageState());
      if (!dir.isDirectory()) return false;
  }
  </code></pre>
  
  <p>And logcat:</p>
  
  <pre><code>    05-09 14:40:15.131    1453-1453/my.package I/my tag﹕ isDirectory + /storage/emulated/0/myFolder | false | false
  05-09 14:40:15.131    1453-1453/my.package I/my tag﹕ isDirectory + /storage/emulated/0/myFolder | false | false
  05-09 14:40:15.136    1453-1453/my.package I/my tag﹕ isDirectory + /storage/emulated/0/Music/myFolder | false | false
  05-09 14:40:15.136    1453-1453/my.package I/my tag﹕ Status + mounted
  05-09 14:40:17.261    1453-1453/my.package I/my tag﹕ isDirectory + /storage/emulated/0/myFolder | false | false
  05-09 14:40:17.261    1453-1453/my.package I/my tag﹕ isDirectory + /storage/emulated/0/myFolder | false | false
  05-09 14:40:17.261    1453-1453/my.package I/my tag﹕ isDirectory + /storage/emulated/0/Music/myFolder | false | false
  05-09 14:40:17.266    1453-1453/my.package I/my tag﹕ Status + mounted
  </code></pre>
  
  <p>I also tried <strong>mkdirs();</strong>, path with slash and without, Google it..and finally <strong>I'm desperate</strong></p>
  
  <p>When i manually crate folder and tried to save file into, i recieve permission error - <strong>open failed: EACCES (Permission denied)</strong></p>