Comp 4521 spring 2014 week 3 4 lifecycle methods

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: t in our AskName.java we have updated the code by specifying sufficient information, whether the message will be "Hello" or "Goodbye" and passed the string value through the Intent. Now, we do a minor change in the MainActivity.java of the setText() method in the following way. tv.setText(friend +"!"); 14. Run the application. Type your friend's name and click on "Say Hello!" or "Say Goodbye!" button. In the output window, it will show "Hello < Friend's name>!" or "Goodbye < Friend's name>!" based on the button clicked. Observ ing the Li fe Cycle of Activities and the activation of Lifecycle Methods Introduction In this lab exercise, we will extend the Hello Friend Extended example in order to...
View Full Document

This document was uploaded on 03/12/2014.

Ask a homework question - tutors are online