Hello,
Welcome to our Microsoft Q&A platform!
When we check document getExternalStoragePublicDirectory,we will find that
So, you can access content stored on shared/external
storage by migrating to alternatives such as Context#getExternalFilesDir(String), MediaStore, or Intent#ACTION_OPEN_DOCUMENT.
And there is a article about this, you can check it here: Android 11 Scoped Storage - Saving Files To Shared Storage .
Best Regards,
Jessie Zhang
---
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.