Beta Release 1.4.0
Main github page with some extra explanation and screenshots
Changelog:
Beta due to insufficient testing possibilities as I myself have a unit with only HOME/BACK/Vol+/Vol- buttons
In previous versions you could only start an app by package name like: com.syu.radio if you wanted to start the FYT radio (BAND) app.
Currently there are 3 options to "start something" with the "Call method"
- by package name
- by intent (package name / intent)
- by system call (terminal command(s) or script)
by package name: This is NOT the name of the apk but the internal package name.
How do you get this "package name"?
- Use the "List all Installed apps" option in the main screen of the settings. It shows the app icon, the app name and the package name. This package name is what you need. You can select it and copy & paste it into the field.
- Search in play.google.com for the app you want to start. Say you want to start the navigation app "Magic Earth" and you have selected that one in the play store (in a browser, not the android app). In the address bar you will then see "https://play.google.com/store/apps/details?id=com.generalmagic.magicearth". The bold part behind the "id=" is your package name.
by intent: Every app has a "launch" intent to start the app. Some apps can also be started with other intents to immediately start a specific function. Google Search can be started with the launch intent, but you can also start it with the Google Voice search option intent. The Google (Search) package name is "com.google.android.googlequicksearchbox", the specific intent for google voice search is "com.google.android.googlequicksearchbox.VoiceSearchActivity". The combined "String to be used" is therefore "com.google.android.googlequicksearchbox/com.google.android.googlequicksearchbox.VoiceSearchActivity".
Another example is the Joying Bluetooth apk having intents for the dialer (default launch), the call receiver, the bluetooth streaming, the pairing and a few more.
by system call: A system call can be a direct (linux) command or a shell script or a binary (to do something).
= Commands can be a single command as in:
- "ls -l > /sdcard/some_file.txt" to capture a directory listing to a file
- "input keyevent 3" => Go to the Home screen (of the default launcher)
- "am start -a android.intent.action.MAIN -c android.intent.category.HOME" => Go to the Home screen (of the default launcher)
- "input keyevent 127" => pause active media player (any media player)
- "input key event 126" => (re)start last used media player.
- "am start com.syu.radio/com.syu.radio.Launch" => Start the radio app with the default launch intent (or better use "by package name": com.syu.radio; Or use "by intent": com.syu.radio/com.syu.radio.Launch)
