How to start an application using Android ADB tools

How do I send an intent using Android’s ADB tools? 15 s 15 adb shell am start -n com.package.name/com.package.name.ActivityName Or you can use this directly: adb shell am start -n com.package.name/com.package.name.ActivityName You can also specify actions to be filter by your intent-filters: am start -a com.example.ACTION_NAME -n com.package.name/com.package.name.ActivityName

How to use ADB Shell when Multiple Devices are connected? Fails with “error: more than one device and emulator”

$ adb –help -s SERIAL use device with given serial (overrides $ANDROID_SERIAL) $ adb devices List of devices attached emulator-5554 device 7f1c864e device $ adb shell -s 7f1c864e error: more than one device and emulator 14 s 14 Use the -s option BEFORE the command to specify the device, for example: adb -s 7f1c864e shell … Read more

How can I connect to Android with ADB over TCP? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 1 year ago. Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting … Read more

How can you access the contents of Android Emulator databases?

I’ve read the answer to a question as to how to access the contents of the databases, however I cannot seem to get it to work on my machine. Here is the shell log: C:\android-sdk-windows\tools>adb -s emulator-5554 shell # sqlite3 /data/data/com.android.demo.notepad2/databases/notes sqlite3 /data/data/com.android.demo.notepad2/databases/notes SQLite version 3.5.9 Enter “.help” for instructions sqlite> .tables .tables sqlite> ^C … Read more