[null, {"document_url": "https://android-er.blogspot.com/2009/12/datepicker-widget-to-select-month-day.html", "unformatted_src": "//1.bp.blogspot.com/_C5a2qH8Y_jk/SzzjTr9gtfI/AAAAAAAAAU4/64YLumc_pVE/s400/AndroidDatePicker.png", "src": "http://1.bp.blogspot.com/_C5a2qH8Y_jk/SzzjTr9gtfI/AAAAAAAAAU4/64YLumc_pVE/s400/AndroidDatePicker.png", "formatted_filename": "AndroidDatePicker", "alt_text": "DatePicker"}, null, null, null, null, null, null, null]

DatePicker, a widget to select month, day and year.

A DatePicker is a widget that allows the user to select a month, day and year. Create a new Android Application, AndroidDatePicker.

Modify the layout, main.xml, to add a button to start the DatePicker.

Modify the main program, AndroidDatePicker.java.

A Toast will be displayed in onCreateDialog(), to show that DatePickerDialog() will be created once only (in the first time display the dialog). Download the files.

by： Andr.oid Eric Andr Oid | Create Your Badge Tweets by @android_er