DatePickerDialog

suggest change

DatePickerDialog is the simplest way to use DatePicker, because you can show the dialog anywhere in your app. You do not have to build your own layout around a DatePicker.

How to show dialog:

DatePickerDialog datePickerDialog = new DatePickerDialog(context, listener, year, month, day);
datePickerDialog.show();

getDatePicker() returns the DatePicker inside the dialog. You can use it to set a minimum date in milliseconds:

DatePicker datePicker = datePickerDialog.getDatePicker();
datePicker.setMinDate(System.currentTimeMillis());

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents