Skip to content

Question about opening files of custom extensions on Android #16

@hippogamesunity

Description

@hippogamesunity

Hello! allowedFileTypes should be a known MIME on Android. All of my custom extension registered in [NativeFilePicker Custom Types] can't be picked on Android 11 (they are grayed).
image
The only possible workaround I've found is using "application/octet-stream"

allowedFileTypes.Add("application/octet-stream");

The problem is that Android 11 creates a new file duplicate in the app's temp storage (where this file is accessible), but its' extension is ".bin". So I'm wondering is there any way to know the original file path? For now I have to try all possible extensions int try/catch block to read ".bin" files.

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