title: java.io.FileNotFoundException: open failed: EACCES (Permission denied)
body: <p>I got this error when I trying to storage a bitmap into storage #</p>
  <pre><code>    File path = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES), &quot;picture&quot;);
      if (! path.exists()) {
          path.mkdirs();
          if (!path.exists()) {
              return null;
          }
      }
      String timeStamp = new SimpleDateFormat(&quot;yyyyMMdd_HH_mm_ss&quot;, Locale.CHINA).format(new Date());
      File imagePath = new File(path.getPath() + &quot;_&quot; + &quot;IMG_&quot; + timeStamp + &quot;.jpg&quot;);
      BufferedOutputStream fos;
      try {
          fos =new BufferedOutputStream(new FileOutputStream(imagePath));
          bitmap.compress(Bitmap.CompressFormat.PNG, 100, fos);
          fos.flush();
          fos.close();
          return imagePath;
      } catch (FileNotFoundException e) {
          Log.e(&quot;GREC&quot;, e.getMessage(), e);
          return null;
      } catch (IOException e) {
          Log.e(&quot;GREC&quot;, e.getMessage(), e);
          return null;
      }
  </code></pre>
  <p><code>fos = new BufferedOutputStream(new FileOutputStream(imagePath));</code></p>
  <p>I debug and found this line cause the error.</p>
  <p>And in manifest the permission set is right</p>