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.
Written by Anuraag Sridhar
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#