Home /How to pass extra values to activity from shell
Error message
- Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /var/www/drupal/includes/common.inc).
- Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /var/www/drupal/includes/common.inc).
- Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /var/www/drupal/includes/common.inc).
- Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /var/www/drupal/includes/common.inc).
- Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /var/www/drupal/includes/common.inc).
- Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /var/www/drupal/includes/common.inc).
- Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /var/www/drupal/includes/common.inc).
- Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /var/www/drupal/includes/common.inc).
- Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /var/www/drupal/includes/common.inc).
- Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /var/www/drupal/includes/common.inc).
- Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /var/www/drupal/includes/common.inc).
- Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/drupal/includes/common.inc).
- Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in menu_set_active_trail() (line 2405 of /var/www/drupal/includes/menu.inc).
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