title: Android: mkdirs()/mkdir() on external storage returns false
body: <p>I'm driven crazy with this:</p>
  
  <pre><code>Log.d("STATE", Environment.getExternalStorageState());
  File f = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM), "work_data");
  Log.d("PATH", f.getAbsolutePath());
  if (!f.exists()) {
      Log.d("MAKE DIR", f.mkdirs() + "");
  }
  </code></pre>
  
  <p>The output log looks like this:</p>
  
  <pre><code>STATE     mounted
  PATH      /mnt/sdcard/DCIM/work_data
  MAKE DIR  false
  </code></pre>
  
  <p>I made sure to add the correct permission:</p>
  
  <pre><code> &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt; 
  </code></pre>
  
  <p>But I don't know why it could not create the folder. I also used <code>mkdir()</code> step by step but the result is the same. Please help me. I have googled so much and spent at least 2 days on this stupid thing. Thanks for your help!!</p>
  
  <p>EDITING:</p>
  
  <p>Sorry everyone! I had added <code>&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;</code> in <code>&lt;application&gt;</code> tag. this was my mistake! But thank you all for reply.</p>