Translations:Android Training/Starting Another Activity/22/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)

Every Activity is invoked by an Intent, regardless of how the user navigated there. You can get the Intentthat started your activity by calling getIntent() and retrieve the data contained within the intent.

  1. In the java/com.mycompany.myfirstapp directory, edit the DisplayMessageActivity.java file.
  2. Get the intent and assign it to a local variable.