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

From Android Wiki
Revision as of 21:22, 20 December 2015 by FuzzyBot (talk | contribs) (Neue Version von externer Quelle importiert)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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: