端末の24時間表示の設定チェック
DateFormat.is24HourFormat(context)を使用する
☓ Settings.System.getString(context.getContentResolver(),
Settings.System.TIME_12_24)
◯ DateFormat.is24HourFormat(context)
恐らく、24時設定を一度も設定していない端末でTIME_12_24の値を取得するとnullになる
seen from United States
seen from United States
seen from United States
seen from United States

seen from United States
seen from Germany
seen from United States
seen from China
seen from Hong Kong SAR China

seen from Japan
seen from China
seen from Germany
seen from Yemen

seen from United States
seen from Singapore

seen from United States
seen from China
seen from China
seen from Netherlands
seen from Canada
端末の24時間表示の設定チェック
DateFormat.is24HourFormat(context)を使用する
☓ Settings.System.getString(context.getContentResolver(),
Settings.System.TIME_12_24)
◯ DateFormat.is24HourFormat(context)
恐らく、24時設定を一度も設定していない端末でTIME_12_24の値を取得するとnullになる