AndroidMy 6.0 targetSdkVersion 23 open failed: EACCES (Permission denied) : <p>I got a error, W/System.err: java.io.FileNotFoundException: open failed: EACCES (Permission denied)   </p>

<p>Code has :</p>

<pre><code>Environment.getExternalStorageDirectory().getAbsolutePath()
</code></pre>

<p>AndroidManifest.xml has :</p>

<pre><code>&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
&lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/&gt;
</code></pre>

<p>build.gradle has:</p>

<pre><code>targetSdkVersion is 23
</code></pre>
