Reputation: 1
How to identify whether Android phone clock is set to hours mode or AM/PM mode?
Upvotes: 0
Views: 85
Reputation: 1120
Try out is24HourFormat function of the DateFormat class. It should return true if the user has selected 24-hour-format, otherwise false. Have a look at the docs too: DateFormat.is24HourFormat(Context context)
Upvotes: 1