Java tutorial
//package com.java2s; import android.content.Context; import android.provider.Settings; public class Main { public static boolean isAirplaneModeOn(Context ctx) { boolean isModeOn; isModeOn = Settings.System.getInt(ctx.getContentResolver(), Settings.System.AIRPLANE_MODE_ON, 0) != 0; return isModeOn; } }