Last Updated: July 25, 2019
·
923
· anuraags

Installing and running a specific activity in an Android app from command line on windows

The following line in a Windows command shell (and probably Unix as well, although not tried) installs an Android app, runs a specific activity within and runs logging at info level:

adb install -r <Location of the .apk> & adb shell am start -n <Application package name>/.<Activity Name> & adb logcat *:I

Note: this runs the app on a device, not the emulator.