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

Aus Android Wiki
Wechseln zu: Navigation, Suche

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: