Translations:Android Training/Starting Another Activity/9/en
An Intent
can carry data types as key-value pairs called extras. The putExtra()
method takes the key name in the first parameter and the value in the second parameter.
- At the top of the
MyActivity
class, add theEXTRA_MESSAGE
definition as follows: