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