Code example for DatePickerDialog

Methods: show

0
		b.setText(getTextFor(d, new SimpleDateFormat("dd.MM.yyyy").format(d)));
		b.setOnClickListener(new OnClickListener() {
 
			@Override 
			public void onClick(View v) {
				p.show();
			} 
		}); 
		return b;
	} 
 
	public Date getDateFor(int day, int month, int year) {
		final Calendar cal = Calendar.getInstance();
		cal.set(year, month - 1, day);
		return cal.getTime();
	} 
 
	public abstract Date loadDate();
 
	@Override 
	public boolean save() {