title: Cannot Write to sdcard in Android emulator
body: <p>I have added this line in the AndroidManifest.xml:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  </code></pre>
  
  <p>However, when I run code to write to the sdcard , I get this Error:</p>
  
  <pre><code>02-19 13:24:46.760: E/CameraTest(598): /mnt/sdcard/image.jpg: open failed: EACCES (Permission denied)
  </code></pre>
  
  <p>How do I solve this problem?</p>
  
  <p><strong>EDIT:</strong> I am using the Android Emulator with SDCard added.</p>
  
  <p><strong>EDIT-2:</strong> I know what the problem is now: I have called the function <code>Environment.getExternalStorageState()</code> and I get "removed". Anyone knows how to fix this and make the state <code>MEDIA_MOUNTED</code></p>
  
  <p>Thank You!</p>