super.onCreate(savedInstanceState);
setContentView(R.layout.date_widgets_example_2);
TimePicker timePicker = (TimePicker) findViewById(R.id.timePicker);
timePicker.setCurrentHour(12);
timePicker.setCurrentMinute(15);
mTimeDisplay = (TextView) findViewById(R.id.dateDisplay);
updateDisplay(12, 15);
timePicker.setOnTimeChangedListener(new TimePicker.OnTimeChangedListener() {
public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {
updateDisplay(hourOfDay, minute);
}
});