How to open Android's native file picker?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By blurrred

What’s the standard way for opening Android’s native file picker? I’ve tried using OS.shell_open(), but it causes my app to crash. I’m trying different paths such as user://, /, and OS.get_system_dir(OS.SYSTEM_DIR_DCIM). None of them work, and I’m using ProjectSettings.globalize_path().
Linked below is the file picker that I am trying to open. I’ve used the same one across many different apps, so there must be a way to open it without having to recreate it ourselves. Does Godot support this?

:bust_in_silhouette: Reply From: Calinou

Godot currently doesn’t feature OS file picker integration, so you would have to write an Android plugin to achieve this.

Thank you for the clarification. I was searching for awhile and wanted to be sure that there was not an implementation in place before going the harder route of creating one myself.

blurrred | 2021-08-20 03:05