Sample Header Ad - 728x90

How to use file picker from command line

0 votes
0 answers
558 views
I would like to launch a file picker from a script to graphically select file. While I am able to launch a file picker by sending intent
am start -a android.intent.action.OPEN_DOCUMENT -d /storage/emulated/0 -t '*/*'
I can't see any way to get selection back to script. The command returns immediately and after file is chosen the dialog is simply closed.
Asked by Real Tadpole (1 rep)
Sep 11, 2022, 12:47 AM
Last activity: Sep 11, 2022, 12:51 AM