app/src/main/java/edu/washington/briluu/quizdroid/MenuActivity.java
// Returns true if Airplane mode is on, false otherwise
Returns true if Airplane mode is on, false otherwise
Returns true if Airplane mode is on false otherwise
@TargetApi(17)
    private boolean isAirplaneModeOn() {
        return Settings.Global.getInt(getApplicationContext().getContentResolver(),
                Settings.Global.AIRPLANE_MODE_ON, 0) != 0;
    }
@ TargetApi ( 17 ) private boolean isAirplaneModeOn ( ) { return Settings . Global . getInt ( getApplicationContext ( ) . getContentResolver ( ) , Settings . Global . AIRPLANE_MODE_ON , 0 ) != 0 ; }
Returns true if Airplane mode is on, false otherwise
Returns true if Airplane mode is on false otherwise