title: can't create a folder in external storage on android device
body: <p>I am trying to create a folder in external storage and I followed a couple of other threads here. However, even though I seem to be doing what they indicate, creation fails.</p>
  
  <p>Here's a piece of code</p>
  
  <pre><code>boolean mExternalStorageAvailable = false;
      boolean mExternalStorageWriteable = false;
  
      String state = Environment.getExternalStorageState();
      if (Environment.MEDIA_MOUNTED.equals(state)) {
          mExternalStorageAvailable = true;
          mExternalStorageWriteable = true;
      } else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {
          mExternalStorageAvailable = true;
          mExternalStorageWriteable = false;
      } else {
          mExternalStorageAvailable = false;
          mExternalStorageWriteable = false;
      }
      File exst = Environment.getExternalStorageDirectory();
      String exstPath = exst.getPath();
  
      File fooo = new File(exstPath+"/fooo");
      boolean success = fooo.mkdir();
  </code></pre>
  
  <p>When I execute it, I get this:</p>
  
  <pre><code>mExternalStorageAvailable = true;
  mExternalStorageWriteable = true;
  success = false;
  </code></pre>
  
  <p>Here's the entire manifest file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.mydev.mobile.Test"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk android:minSdkVersion="8" /&gt;
  
  &lt;application
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name" &gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;activity
          android:label="@string/app_name"
          android:name=".TestIndexSearchForHitsAndroidActivity" &gt;
          &lt;intent-filter &gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>What am I doing wrong? Thanks!</p>