Java.io.ioexception: Open Failed: Eacces (permission Denied) When Writing File In Api Level 23
I'm trying to export my DB to a CSV file. I have applied the appropriate permission to the AndroidManifest.xml. I'm just wondering why I can't write/create the file in my (actual d
Solution 1:
No, declaring the permission is not enough when targeting Api23.
You have to request the permissions at runtime in Marshmallow onwards.
http://developer.android.com/training/permissions/requesting.html
You can get around this for now by targeting Api 22 instead of 23
Post a Comment for "Java.io.ioexception: Open Failed: Eacces (permission Denied) When Writing File In Api Level 23"