Java tutorial
//package com.java2s; import android.content.ContentResolver; import android.content.Context; public class Main { public static boolean is24H(Context context) { ContentResolver resolver = context.getContentResolver(); String strTimeFormat = android.provider.Settings.System.getString(resolver, android.provider.Settings.System.TIME_12_24); if ("24".equals(strTimeFormat)) { return true; } return false; } }