1 year ago
#369290
Savan Luffy
Android 11: ACTION_OPEN_DOCUMENT_TREE get absolute Folder Path
Since Android 11 restricts the freedom accesing the external storage, I've looked many solutions to convert following path which I receive from ACTION_OPEN_DOCUMENT_TREE
intent: content://com.android.providers.downloads.documents/tree/msd%3A163975/document/msd%3A163975
to a path looking like this: storage/emulated/0/Downloads/TestFolder
Why do I need the absolute folder path?:
The user can choose a folder, where the app will create a backup ZIP file each day.
Since the user might forget which folder he selected, he should be read the absolute path of the folder he choose. content://com.android.providers....
is not really descriptive for the enduser.
According to some valid answers, android 10-11 prevent developers receiving the absolute path of a folder. Is that true?
Other solutions I tried executing without any success:
android
android-intent
uri
android-contentresolver
documentfile
0 Answers
Your Answer