I've done everything and I could not make a DatePickerDialog like this ...
forprelollipopversions.ThecodeI'musingfornow:
DatePickerDialogdlg=newDatePickerDialog(ActivityAddAvaliacoes.this,newDatePickerDialog.OnDateSetListener(){@OverridepublicvoidonDateSet(DatePickerview,intyear,intmonthOfYear,intdayOfMonth){edtAddData.setText(dayOfMonth+"-"+monthOfYear+"-"+year);
}
}, year, month,day).show();