How to pass extra values to activity from shell
Submitted by drjunior on Mon, 06/03/2013 - 16:07
This command is very useful when you need to start an activity from shell environment that needs to receive args (extras in the intent).
Cmd:adb shell am start -e extraName extraValue -n packageName/.activityName {activity flags}
Example:adb shell am start -e Language PT -n pt.fraunhofer.util.changelanguage/.ActivityChangeLanguage --activity-clear-top
- Log in to post comments