pawan pathak
pawan pathak

Reputation: 1

android time mode check

How to identify whether Android phone clock is set to hours mode or AM/PM mode?

Upvotes: 0

Views: 85

Answers (1)

rocky3000
rocky3000

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

Related Questions