And if you don't want to poll if the Airplane Mode is active or not, you can register a BroadcastReceiver for the ...
stackoverflow.com