Kind of new to scripting... An app, my_app, is installed on the device. I need a script command to open that app and pass arguments. Something like iPhone's openApp tag.
Also How do I pass arguments to my_app.
10xs, Nir
Kind of new to scripting... An app, my_app, is installed on the device. I need a script command to open that app and pass arguments. Something like iPhone's openApp tag.
Also How do I pass arguments to my_app.
10xs, Nir
In order to receive arguments, your app has to be set up to extract arguments from the Intent that launches it. All android apps are built around Intents and Intent processing as opposed to script launching and execution. Look into intents for more information about them if you need it, but essentially when your app is set up, presuming your script is running from your desktop, the command to start would be
adb am start org.example.myapp.MyActivity -e arg1 foo;
A quick search shows another SO answer that explains all the arguments of am and this answer showing how to extract extras from an intent.