How to configure Android TimePickerDialog to use 15 minute intervals?
I need to create the collector programmatically, as shown below, so XML timer related solutions (for example, here: Android - TimePicker up to 15 minutes ) will not work.
new TimePickerDialog(getActivity(), t, hour,minute, false).show();
The problem is that when creating a timer, there is no way to pass a new function to TimePicker .setOnTimeChangedListener() .
Can I use the new TimePIckerDialog constructor and use 15-minute intervals?
source share