title: java.io.FileNotFoundException: /mnt/sdcard/file (Permission denied)
body: <pre><code>07-21 05:47:51.572: W/System.err(693): java.io.FileNotFoundException: /mnt/sdcard/file(Permission denied)
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>    private static final String savedRecords= 
          Environment.getExternalStorageDirectory().getPath() + "/file";
  
      Log.i(tag, "try enter");
      out = new BufferedOutputStream( new FileOutputStream(savedRecords));
      Log.i(tag, "write?");
  
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="com.android.vending.CHECK_LICENSE" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_SETTINGS"/&gt;
  </code></pre>
  
  <p>over 6000 questions about "java.io.FileNotFoundException", but nothing including "Permission denied"</p>
  
  <p>why is Permission denied, when  is included in AndroidManifest.xml</p>