Code example for DatePickerDialog

Methods: show

0
 
		} 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();
				} 
			}; 
 
		} else { 
			Log.d(pluginName, "Unknown action. Only 'date' or 'time' are valid actions"); 
			return; 
		} 
 
		cordova.getActivity().runOnUiThread(runnable); 
	} 
 
	private final class DateSetListener implements OnDateSetListener {
		private final DatePickerPlugin datePickerPlugin;