};
@Override
protected Dialog onCreateDialog(int id) {
// TODO Auto-generated method stub
switch(id)
{
case DATE_PICKER_ID:
//通过Calendar中的方法得到当前系统的日期
return new DatePickerDialog(this,onDateSetListener
,Calendar.getInstance().get(Calendar.YEAR)
,Calendar.getInstance().get(Calendar.MONTH)
,Calendar.getInstance().get(Calendar.DAY_OF_MONTH));
}
return super.onCreateDialog(id);
}
}