开发者

android time mode check

开发者 https://www.devze.com 2023-02-23 10:11 出处:网络
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

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)

0

精彩评论

暂无评论...
验证码 换一张
取 消