Skip to content

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

@cchcc

Description

@cchcc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions