I am using showDialog()
to show a DatePickerDialog
. I want to change or remove the dialog's title.
I tried adding these code
dlg = new DatePickerDialog(this, dsl, mYear, mMonth, mDay);
dlg.init(mYear, mMonth, mDay, new onDateChanedListener() {
@Override
public void onChanged(WheelView wheel, int oldValue,
int newValue) {
// TODO Auto-generated method stub
}
});
But the Eclipse shown
The method init(int, int, int, new onDateChanedListener(){}) is undefined
Then I tried to
extends Activity implements OnClickListener, OnDateChangedListener
I set to log the date
@Override
public void onDateChanged(DatePicker view, int year, int monthOfYear,
int dayOfMonth) {
Log.i("info", year + "/" + monthOfYear + "/" + dayOfMonth);
}
But I didn't get the log info.
Does anyone know how to use showDialog()
to change or set the title?