11. Using Dialogs to Collect User Input

In this chapter, you continue to add features to the Have You Read That? settings screen. Specifically, you learn about Android activity dialogs and implement several within the QuizSettingsActivity class. Each dialog will be specially designed to collect a specific type of input from the user. First, you implement a DatePickerDialog to collect the user’s birth date, and then you build a custom dialog to enable the user to change her password.

Working with Activity Dialogs

There is only so much screen real estate available on a device, but it’s cumbersome—both for the developer and the user alike—to have to transition between activities too frequently for simple tasks. Luckily, the Android SDK includes ...

Get Learning Android™ Application Programming for the Kindle Fire™: A Hands-On Guide to Building Your First Android Application 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.