title: Unable to write files on sdcard android emulator
body: <p>I am trying to write a MIDI file on SDcard. It works on my device but not in the emulator. Here's the error on the logCat :</p>
  
  <pre><code>12-25 09:18:27.733: W/ExternalStorage(1951): Error create /sdcard/download/test.mid
  12-25 09:18:27.733: W/ExternalStorage(1951): java.io.FileNotFoundException: /sdcard/download/test.mid
  12-25 09:18:27.733: W/ExternalStorage(1951):    at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
  12-25 09:18:27.733: W/ExternalStorage(1951):    at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:97)
  12-25 09:18:27.733: W/ExternalStorage(1951):    at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:168)
  12-25 09:18:27.733: W/ExternalStorage(1951):    at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:147)
  </code></pre>
  
  <p>I have set the permission in the manifest file, and change the path from "/sdcard/download/test.mid" to Environment.getExternalStorageDirectory()+"/download/test.mid" but still doesn't work.</p>
  
  <p>FYI, I use <a href="http://kevinboone.net/javamidi.html" rel="nofollow">Kevin Boone's MidiFile</a> class, and here's my code :</p>
  
  <pre><code>String state = Environment.getExternalStorageState();
      if (Environment.MEDIA_MOUNTED.equals(state)) {
          mf.writeToFile(Environment.getExternalStorageDirectory()+"/download/test.mid");
      }
  </code></pre>