Translations:Android Training/Starting Another Activity/9/en

From Android Wiki
Jump to navigation Jump to search

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.

  1. At the top of the MyActivity class, add the EXTRA_MESSAGE definition as follows: