Code example for DatePickerDialog

Methods: setTitlegetDatePicker

0
	// Use the current date as the default date in the picker 
	final Calendar c = Calendar.getInstance();
	int year = c.get(Calendar.YEAR);
	int month = c.get(Calendar.MONTH);
	int day = c.get(Calendar.DAY_OF_MONTH);
	DatePickerDialog dialog =  new DatePickerDialog(getActivity(), this, year, month, day);
	/*Calendar View if you want to Remove Set it to False*/ 
    dialog.getDatePicker().setCalendarViewShown(true);
 
    /*Spinner View if you want to Show Set it to True*/ 
    dialog.getDatePicker().setSpinnersShown(false);
    dialog.setTitle("Pick a date");
	return dialog;
} 
 
	public void onDateSet(DatePicker view, int yy, int mm, int dd) {
 
		setTheDate(yy, mm+1, dd);
	} 
 
Contextual code suggestions in your IDE  Get Codota for Java