Question Detail

I am not able to upload or select images from camera and Storage in android Q or you can say Android 10.

Error Image Could not be Uploaded. /storage/emulated/0/Pictures/Image.jpg: Open Failed: EACCES (Permission Denied) android 

How to resolve EACCES (Permission Denied) for android 10 Q? 


Thread Reply

alex levine

- 2 months ago

If your Android Application target API level 29, and you need to use Storage Access you have to implement scoped Access which is introduced in Android 10 Or Android Q.

In Scoped Access Your app only can access only App-specific Directory

To use Other Directories you need to add requestLegacyExternalStorage

<application
    ...
    android:requestLegacyExternalStorage="true"