Exercises

1. Change the Hello World app to allow the entering of a first and a last name and display “Hello firstname lastname!” when the button is clicked. Be sure to label the EditTexts to reflect the new data that is to be input.

2. Add a Clear button. The Clear button should remove any data in the EditText(s) and change the display back to “Hello world!”

3. Create a new Android Virtual Device that uses a bigger device to test your app on a different screen size. Run the app using the new AVD.

Get Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.