Onpause logitag activity onpause

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: through different lifecycle methods which will specify which lifecycle method has just been called by which activity. We will take help of LogCat window that will trace out all of the details of how the android application and the associated activities and components get executed. 4. Let us assign TAG name to the AskName.java activity MainActivity.java activity in order to identify the activity in LogCat window. Add in the following code separately inside the AskName.java activity and MainActivity.java activity. private static final String TAG = "AskName"; private static final String TAG = "MainActivity"; 5. Insert the following code inside the onCreate() method. Log.i(TAG, "Activity: onCreate()"); Here "i" means info. This method takes two parameters, first one is the TAG - the activity name and the secon...
View Full Document

Ask a homework question - tutors are online