Java tutorial
//package com.java2s; import android.content.Context; public class Main { /** * is air plane mode? * @param context * @return */ public static boolean isAirplaneModeOn(Context context) { return android.provider.Settings.System.getInt(context.getContentResolver(), android.provider.Settings.System.AIRPLANE_MODE_ON, 0) != 0; } }