question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

On Xiaomi Mi9 (Android 11), 'path' of FilePickedCallback is always null

See original GitHub issue

Thank 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:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cchcccommented, Oct 26, 2021

OK. I tested NativeGallery.GetImageFromGallery on Mi9, Android11. The result is same. ‘path’ of MediaPickCallback is null.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found