abhinav.mehra abhinav.mehra - 1 year ago 105
Android Question

How to set the TimePickerDialog to 24 hour?

I know how to set the TimePicker widget to 24 hour, how do you do the same for the TimePickerDialog???

Otherwise will I have to make a new dialog box altogether??

Answer Source

Basically there is a constructor parameter

public TimePickerDialog (Context context, TimePickerDialog.OnTimeSetListener callBack, int hourOfDay, int minute, boolean is24HourView)

and this link might also help you

TimePickerDialog and AM or PM


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download