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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.