Code example for DatePickerDialog

Methods: setMessage

0
	 
	@Override 
	  protected Dialog onCreateDialog(int id) {
	    switch (id) {
	    case BIRTH_DATE_DIALOG_ID:
	        DatePickerDialog dateDlg = new DatePickerDialog(this,
	             new DatePickerDialog.OnDateSetListener() {
	             public void onDateSet(DatePicker view, int year,
	                                                 int monthOfYear, int dayOfMonth)
	             { 
	                        Time chosenDate = new Time();
	                        chosenDate.set(dayOfMonth, monthOfYear, year);
	                        milliSeconds = chosenDate.toMillis(true);
	            }}, Calendar.getInstance().get(Calendar.YEAR), Calendar.getInstance().get(Calendar.MONTH), Calendar.getInstance().get(Calendar.DATE));
	          dateDlg.setMessage("What is your date of birth?");
	          return dateDlg;
	    } 
	    return super.onCreateDialog(id);
	  } 
	 
	/*@Override