Chapter 6. Displaying and Fetching Information Using Dialogs and Fragments

In This Chapter

AlertDialogs

Getting Input via Dialog Boxes

• Understanding DatePickerDialogs

• Understanding TimePickerDialogs

Selecting Date and Time in One Application

• Understanding Fragments and Their Life Cycles

• Creating Fragments Through XML and Java Code

• Understanding Specialized Fragments, ListFragment, DialogFragment, and PreferenceFragment

A dialog is a smaller window that pops up to interact with the user. It can display important messages and can even prompt for some data. Once the interaction with the dialog is over, the dialog disappears, allowing the user to continue with the application. Fragments, as the name suggests, enable us to fragment ...

Get Android™ Programming Unleashed 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.