// get the Calendar
Calendar c = Calendar.getInstance();
// get the year,month,day
int cYear = c.get(Calendar.YEAR);
int cMonth = c.get(Calendar.MONTH);
int cDay = c.get(Calendar.DAY_OF_MONTH);
// create DatePickerDialog
DatePickerDialog datePickerDialog = new
DatePickerDialog(
DatePickerDialogDemoActivity.this, dateListener, cYear,
cMonth, cDay);
// show DatePickerDialog
datePickerDialog.show();
No comments:
Post a Comment