HBiSoft / PickiT

An Android library that returns real paths from Uri's
MIT License
292 stars 54 forks source link

EAccess Denied to path on Android 11 #56

Closed bssit1745 closed 1 year ago

bssit1745 commented 1 year ago

While using library on android less than 10 its working fine but as you go above 11 it returns path but also show error EAccess Denied while picking pdf

PickiT version 2.0.5

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had activity in the last 14 days. It will be closed if no further activity occurs within the next 3 days. Thank you for your contributions.

HBiSoft commented 1 year ago

Apologies for the late reply. This is most probably caused by not adding the following in your manifest:

<manifest ... >
  <application 
    android:requestLegacyExternalStorage="true" 
  </application>
</manifest>

If you are still having issues with this, please reopen the issue and provide more info on the issue. Thanks

viktorilievski commented 1 year ago

requestLegacyExternalStorage is not working on Android 11.

You must use a new permission as I have stated in this comment -> https://github.com/HBiSoft/PickiT/issues/55#issuecomment-1699052901