O'Reilly logo

Learning Android™ Application Programming for the Kindle Fire™: A Hands-On Guide to Building Your First Android Application by Shane Conder, Lauren Darcey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required