Android launch intents from commandline

I’ve been trying to integrate android intents with BuradanOraya specifically to test different scheme parsing bits of code. Open up a shell connection (adb shell) to your android device and then trigger the intent focused on a specific application using a command like:

am start -a android.intent.action.VIEW -d geo:29,41 com.app.path

If you don’t specify a package ie
am start -a android.intent.action.VIEW -d geo:29,41

on my android 5 at least it will come up with a chooser of all the different apps that could open the intent.

Leave a Reply

Your email address will not be published. Required fields are marked *