public static bool isAirplaneModeEnabled(Activity act) { return Settings.Global.getInt(act.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON, 0) != 0; }
// returns true if time settings specifies 24 hour format public static bool isTime24HourFormat(Activity act) { ContentResolver cr = act.getContentResolver(); string v = Settings.System.getString(cr, android.provider.Settings.System.TIME_12_24); return "12" != v; }
public static bool getBluetoothEnabled(Activity act) { return Settings.Global.getInt(act.getContentResolver(), Settings.Global.BLUETOOTH_ON, 0) != 0; }