Code example for DatePickerDialog

Methods: setTitlegetDatePicker

	// 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*/ 
    /*Spinner View if you want to Show Set it to True*/ 
    dialog.setTitle("Pick a date");
	return dialog;
	public void onDateSet(DatePicker view, int yy, int mm, int dd) {
		setTheDate(yy, mm+1, dd);
	public void setTheDate(int year, int month, int day) {