How to identify whether Android phone clock is set to hours mode or AM/PM mo开发者_运维问答de?
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)
精彩评论