Hello,
Welcome to our Microsoft Q&A platform!
What is your target framework version in Android?
If you target framework version is Android 10.0 API 29, you can set android:requestLegacyExternalStorage="true"
in the <application>
tag of AndroidManifest.xml
.
If you target framework version is android 11 API 30 or later, you can not use android:requestLegacyExternalStorage
, you need to use storage access framework, let users to browse and open documents, images, and other files across all of their preferred document storage providers.
And if want to add MANAGE_EXTERNAL_STORAGE permission. it is not recommended except your application in this list.
Here is a Storage document in android, you can refer to it.
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.