title: Android Permissions Issue
body: <p>I am writing a simple activity to record and save audio, preferably to a folder within my application, but, for simplicity, to the SD card. The line of code that's giving me trouble is</p>
  
  <pre><code>String path = Environment.getExternalStorageDirectory().toString() + "/" + "tempAppFiles/";
  String filename = "test"+".mp4";
  recorder.setOutputFile(path + filename);
  </code></pre>
  
  <p>where recorder is an instance of MediaRecorder.</p>
  
  <p>When I run the application, I get a permissions error that states</p>
  
  <pre><code>07-31 15:51:51.810: W/System.err(13670): java.io.FileNotFoundException: /mnt/sdcard/tempAppFiles/test.mp4 (Permission denied)
  </code></pre>
  
  <p>I looked this problem up and found that I needed to add several permission tags to my manifest, and I added</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  &lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
  </code></pre>
  
  <p>to my manifest.</p>
  
  <p>I am still getting the same permissions issue, and I can't find anyone with a similar problem.</p>
  
  <p>Any ideas?</p>