Code example for TimePickerDialog

Methods: setOnDismissListener, show

0
 
		if (ACTION_TIME.equalsIgnoreCase(action)) { 
			runnable = new Runnable() { 
				public void run() { 
					final TimeSetListener timeSetListener = new TimeSetListener(datePickerPlugin, callBackId); 
					final TimePickerDialog timeDialog = new TimePickerDialog(currentCtx, timeSetListener, mHour, 
							mMinutes, false); 
					 
					timeDialog.setOnDismissListener(new DismissListener(datePickerPlugin, callBackId)); 
					 
					timeDialog.show(); 
				} 
			}; 
 
		} else if (ACTION_DATE.equalsIgnoreCase(action)) { 
			runnable = new Runnable() { 
				public void run() { 
					final DateSetListener dateSetListener = new DateSetListener(datePickerPlugin, callBackId);
					final DatePickerDialog dateDialog = new DatePickerDialog(currentCtx, dateSetListener, mYear,
							mMonth, mDay); 
					dateDialog.show();