Code example for TimePickerDialog

Methods: setTitle, show

0
	private void openTimePickerDialog(boolean is24r) {
		Calendar calendar = Calendar.getInstance();
 
		timePickerDialog = new TimePickerDialog(AndroidTimeActivity.this,
				onTimeSetListener, calendar.get(Calendar.HOUR_OF_DAY),
				calendar.get(Calendar.MINUTE)+1, is24r);
		timePickerDialog.setTitle("Set Alarm Time");
 
		timePickerDialog.show();
 
	} 
 
	OnTimeSetListener onTimeSetListener = new OnTimeSetListener() {
 
		@Override 
		public void onTimeSet(TimePicker view, int hourOfDay, int minute) { 
 
			Calendar calNow = Calendar.getInstance(); 
			Calendar calSet = (Calendar) calNow.clone(); 
 
			m_alarmId++;