title: FileNotFound Exception when saving image an image from canvas to sdcard
body: <p>The  error I am receiving is at this particular file</p>
  
  <pre><code>    FileInputStream fstream = new FileInputStream("data/data/com.demo.filesave/AllData");
  </code></pre>
  
  <p>==>>07-27 10:41:30.710: java.io.FileNotFoundException: /data/data/com.demo.filesave/AllData (Permission denied)</p>
  
  <p>==>>07-27 10:41:33.914: V/Log_tag(9274): java.io.FileNotFoundException: /data/data/com.demo.filesave/AllData/signature.png (Permission denied)</p>
  
  <pre><code>//File SignSave = Environment.getExternalStorageDirectory();
  
  FileWrite(SignSave,"confirmation"); 
      public  void FileWrite(File aPath,String aBody)
          {
              try 
              {
                  //System.out.println("@@@@ Inside Try FileWrite @@@@");
                  Log.e("BEFORE FILE","BEFORE FILE");
                  aPath.createNewFile();
                  Log.e("AFTER FILE","BEFORE AFTER");
                  PrintWriter out1 = new PrintWriter(aPath);
                  Log.e("AFTER FILE","AFTER PRINT WRITER");
                  out1.write(aBody);  
                  Log.e("AFTER FILE","AFTER WRITING");
                  //System.out.println (aBody.trim());
                  out1.flush();
                  out1.close();
              }
              catch (IOException ioe)
              {
                  //System.out.println("@@@@ Inside Catch FileWrite @@@@"); 
                  ioe.printStackTrace();
              }
  
          }
  </code></pre>
  
  <p>==>>07-27 10:41:33.921: W/System.err(9274):     at java.io.FileNotFoundException /mnt/sdcard (Is a directory) on line
  PrintWriter out1 = new PrintWriter(aPath);</p>
  
  <p>Permissions in manifest file</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" &gt;
      &lt;/uses-permission&gt;
  </code></pre>
  
  <p>Please help me in solving the issue.</p>
  
  <p>Regards,</p>