title: store data text to SD Card in android?
body: <p>I have to store data text to SD Card. </p>
  
  <p>This is my code :</p>
  
  <pre><code> try {
  
                  File myFile = new File(Environment.getExternalStorageDirectory()+"/mnt/sdcard/mysdfile.txt");
  
                  myFile.createNewFile();
                  FileOutputStream fOut = new FileOutputStream(myFile);
                  OutputStreamWriter myOutWriter = 
                                          new OutputStreamWriter(fOut);
                  myOutWriter.append(txtData.getText());
                  myOutWriter.close();
                  fOut.close();
                  Toast.makeText(getBaseContext(),
                          "Done writing SD 'mysdfile.txt'",
                          Toast.LENGTH_SHORT).show();
              } catch (Exception e) {
                  Toast.makeText(getBaseContext(), e.getMessage(),
                          Toast.LENGTH_SHORT).show();
              }
  </code></pre>
  
  <p>In AndroidMainfest i have :</p>
  
  <pre><code>&lt;uses-permission android:name="android.permisson.READ_EXTERNAL_STORAGE" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  </code></pre>
  
  <p>I don't understand Why it don't work ?</p>
  
  <p>In Toast reported error :Permission denied?</p>
  
  <p>Please help me .</p>