Why startActivityForResult doesn't show the button "USE THIS FOLDER" on Android 11 emulator, as it does on Android 10 emulator in Android Studio?

Viewed 255

I have exactly the same problem like in this question: How to hint content manager chooser to open directly on a selectable position with ACTION_OPEN_DOCUMENT_TREE And there is no answer there.

This is my code:

Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE);
startActivityForResult(intent, 43);

On Android 10 emulator it worked perfectly - it showed the button "USE THIS FOLDER". But now i've reinstalled Android Studio and on Android 11 emulator it doesn't work - you must go to another folder and then return to the current one - only after that the button "USE THIS FOLDER" appears.

  1. folder chooser appears at folder "/storage/0F0F-2B1E/_Temp/2005" - there is no button "USE THIS FOLDER": https://live.staticflickr.com/65535/51062052026_10183b6569_b.jpg

  2. i go to parent folder "/storage/0F0F-2B1E/_Temp" - the button appears: https://live.staticflickr.com/65535/51062135572_6af2e01e2d_b.jpg

  3. i go back to "/storage/0F0F-2B1E/_Temp/2005" - the button is here and is selectable: https://live.staticflickr.com/65535/51062135552_36e318ee19_b.jpg

0 Answers
Related