Android 使用TimePickerDialog设置闹钟的例子,dialog=new TimePickerDialog(//创建TimePickerDialog对象 this, new TimePickerDialog.OnTimeSetListener(){ //创建OnTimeSetListener监听器 @Override public void onTimeSet(TimePicker tp, int hourOfDay, int minute) { Calendar c=Calendar.getInstance();//获取日期对象 c.se