How do I set an Android TimePickerDialog
to use 15 minute intervals?
I need to create the picker programmatically as shown below so solutions involving a timepicker in XML (such as here: Android - TimePicker minutes to 15) will not work.
new TimePickerDialog(getActivity(), t, hour,minute, false).show();
The problem is that there appears to be no way to pass in a new function for TimePicker .setOnTimeChangedListener()
when the time picker is created.
Is it possible to use the new TimePIckerDialog constructor and use 15 minute intervals?