Create the Second Activity[edit source]
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.