{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Java activity in order to identify the activity in

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: observe the activity lifecycle and how the lifecycle methods of an activity are called in sequence. Objectives • Learn to use lifecycle methods of an activity. • To observe the activation of the activity lifecycle methods of an activity . COMP 4521 (Spring 2014) Week 3 4 Lifecycle Methods of an Activity 1. Let us start from the Hello Friend Extended example that we implemented just now. In this example we have two activities - AskName.java and MainActivity.java. We will observe how these two activities interact with each other during the execution of the application. 2. We need to add all of the life cycle methods (onCreate(),
 onStart(), onRestart(), onResume(), onPause(), onStop() and onDestroy()) in order to observe the lifecycle stages of these two activities. 3. We will printout log message as the activities go...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online