On Xiaomi Mi9 (Android 11), 'path' of FilePickedCallback is always null
See original GitHub issueThank for your nice work!
I didn’t test it on various device or OS version, but it may occur another also. I found the solution but I couldn’t PR. It’s .aar file
NativeFilePickerPickFragment
in NativeFilePicker.aar
// replace
this.startActivityForResult(Intent.createChooser(intent, title), 121455);
// to
this.startActivityForResult(intent, title, 121455);
I don’t know why but I found that Sample code of ACTION_OPEN_DOCUMENT does not use Intent.createChooser(), also referred comments of this.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Native File Picker for Android & iOS [Open Source] | Page 2
On Xiaomi Mi9 (Android 11), 'path' of FilePickedCallback is always null. I wrote details to here(github issue), please check it.
Read more >Uri getting null for Android 11 (R)
I want to create sub directory (custom folder) with text file and write string data in it. As in Android 11 there is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Another related topic: https://stackoverflow.com/questions/67785661/taking-and-picking-photos-on-poco-x3-with-android-11-does-not-work
OK. I tested
NativeGallery.GetImageFromGallery
on Mi9, Android11. The result is same. ‘path’ ofMediaPickCallback
is null.