termux-api
termux-api copied to clipboard
Question: Open a directory in the default file manager
I'm aware of xdg-open and termux-open for opening files in their respective default applications, but how could I go on about opening some directory in the default file manager?
I activated ssh daemon on port 2221, and used Cx File Manager sftp feature to access termux home directory on localhost.
maybe you can create wrapper will default app activities and based on extension regex use am start to open files in those default app using case ba
@nozwock
am start -a android.intent.action.VIEW -d '/storage/emulated/0/Download' -t 'resource/folder' -n com.cxinventor.file.explorer/com.alphainventor.filemanager.activity.LaunchActivity
-
-d ...is for the directory - Omit the
-n ...to open in default app/show app chooser