Code example for DatePickerDialog

Methods: getDatePicker

		pickedDate = Calendar.getInstance();
		int year = pickedDate.get(Calendar.YEAR);
		int month = pickedDate.get(Calendar.MONTH);
		int day = pickedDate.get(Calendar.DAY_OF_MONTH);
		DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),
				this, year, month, day);
		// Disallow any earlier dates than today's date 
		// Create a new instance of DatePickerDialog and return it 
		return datePickerDialog;
	 * Callback method for when the user sets a date. 
	 * Calls the appropriate method to set the date on the activity that 
	 * initialized the date picker.