Code example for DatePickerDialog

Methods: setMessage

	  protected Dialog onCreateDialog(int id) {
	    switch (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);
Stop searching for code, let great code find you!  Add Codota to your java IDE