Translations:Android Training/Starting Another Activity/23/en: Unterschied zwischen den Versionen

Aus Android Wiki
(Neue Version von externer Quelle importiert)
 
(kein Unterschied)

Aktuelle Version vom 20. Dezember 2015, 21:22 Uhr

Nachricht im Original (Android Training/Starting Another Activity)
At the top of the file, import the <code>[http://developer.android.com/reference/android/content/Intent.html Intent]</code> class.  In Android Studio, press Alt + Enter (option + return on Mac) to import missing classes.
# Extract the message delivered by <code>MyActivity</code> with the <code>[http://developer.android.com/reference/android/content/Intent.html#getStringExtra(java.lang.String) getStringExtra()]</code> method.

At the top of the file, import the Intent class. In Android Studio, press Alt + Enter (option + return on Mac) to import missing classes.

  1. Extract the message delivered by MyActivity with the getStringExtra() method.