Java tutorial
//package com.java2s; import android.content.Context; import android.provider.Settings; public class Main { public static boolean isAirplaneModeEnabled(Context context) { boolean isEnabled = Settings.System.getInt(context.getContentResolver(), Settings.System.AIRPLANE_MODE_ON, 0) == 1; return isEnabled; } }