1. Problem Description: "Java.io.IOException:open failed:eacces (Permission denied)" sometimes appears in Android, when accessing SDcard with a program, This is due to no increase in sdcard corresponding permissions.
2. Workaround:
In the Mainfest file, add the following permissions:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
Problem solving.
3. Supplement:
1). Open Failed:eisdir (is a directory):
This is because you manipulate the object is a file, but the code is the path, the path ".../....../" the Last "/" to remove, or add a file name, should be OK.
2). Another permission related to SDcard:
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/ >
3). Location of permissions:
<application ......</application>, sometimes outside of it, which one can use.
Java.io.IOException:open failed:eacces (Permission denied) problem solving