The following is the first few sections of a chapter from The Busy Coder's Guide to Android Development, plus headings for the remaining major sections, to give you an idea about the content of the chapter.
DatePicker allows the user to pick a date,
TimePicker allows the user to pick a time. This widget is a bit simpler
to use, insofar as you do not have the option of the integrated
CalendarView as you do with
DatePicker. In other respects,
follows the patterns established by
TimePicker only supports hours and minutes, not seconds
or finer granularity.
DatePicker, the act of supplying an
OnDateSetListener also required
you to supply the year/month/day to use as a starting point.
is more intelligently designed: setting the
independent from adjusting the hour or minute.
TimePicker works well with
terms of setting and getting the hour/minute/second from the
TimePicker and converting it into something you can use in your code.
There is a bug
in which your
is not invoked when the user changes between AM and PM when viewing
TimePicker in 12-hour display mode.
The preview of this section was traded for a bag of magic beans.
The preview of this section was eaten by a grue.