Hour 11. Using Dialogs to Collect User Input

What You’ll Learn in This Hour:

Working with activity dialogs

Using DatePickerDialog

Handling and formatting date information

Building custom dialogs

In this hour, you continue to add features to the Been There, Done That! settings screen. Specifically, you learn about Android activity dialogs and implement several within the QuizSettingsActivity class. Each dialog is specially designed to collect a specific type of input from the user. First, you implement a DatePickerDialog to collect the user’s date of birth and then you build a custom dialog to enable the user to change his or her password.

Working with Activity Dialogs

There is only so much screen real estate available on a device, but ...

Get Sams Teach Yourself Android™ Application Development in 24 Hours, Second Edition 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.