#android #dev #adb

How to pass extra values to activity from shell

This command is very useful when you need to start an activity from shell environment that needs to receive args (extras in the intent).

adb shell am start -e extraName extraValue -n packageName/.activityName {activity flags}

adb shell am start -e Language PT -n pt.fraunhofer.util.changelanguage/.ActivityChangeLanguage --activity-clear-top

Subscribe to RSS - #android #dev #adb