Translations:Android Training/Starting Another Activity/13/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)
== Create the Second Activity ==
All subclasses of <code>[http://developer.android.com/reference/android/app/Activity.html Activity]</code> must implement the <code>[http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle) onCreate()]</code> method. This method is where the activity receives the intent with the message, then renders the message. Also, the <code>onCreate()</code> method must define the activity layout with the <code>setContentView()</code> method. This is where the activity performs the initial setup of the activity components.

Create the Second Activity[Quelltext bearbeiten]

All subclasses of Activity must implement the onCreate() method. This method is where the activity receives the intent with the message, then renders the message. Also, the onCreate() method must define the activity layout with the setContentView() method. This is where the activity performs the initial setup of the activity components.