Airplane mode is a setting on mobile devices (smart phones, tablets, etc) that disables the cellular and WiFi radios of the device. Use with an appropriate programming language tag.
Questions tagged [airplane-mode]
101 questions
100
votes
13 answers
How can one detect airplane mode on Android?
I have code in my application that detects if Wi-Fi is actively connected. That code triggers a RuntimeException if airplane mode is enabled. I would like to display a separate error message when in this mode anyway. How can I reliably detect if an…

Sean W.
- 4,944
- 8
- 40
- 66
32
votes
10 answers
Toggle airplane mode in Android
Did I make a mistake? It's not working.
public void airplane() {
boolean isEnabled = Settings.System.getInt(this.getApplicationContext().getContentResolver(), Settings.System.AIRPLANE_MODE_ON, 0) == 1;
…

user669046
- 373
- 2
- 5
- 13
31
votes
4 answers
How to programmatically enable and disable Flight mode on Android 4.2?
Is there a way to disable or enable Flight Mode on Android 4.2?
I use this code that works only for previous Android versions:
android.provider.Settings.System.putInt(
c.getContentResolver(),
…

Meroelyth
- 5,310
- 9
- 42
- 52
14
votes
2 answers
Toggling AirPlane mode in iOS Programmatically
I want to on/off airplane mode in iOS programmatically. After googling, i got some of the following links, and followed them,
Reachability airplane mode (3G) vs. Wifi
Using Private Framework: Importing RadioPreferences.h
Detect if iPhone is in…

Mehul Thakkar
- 12,440
- 10
- 52
- 81
11
votes
4 answers
iphone how to check the Airplane mode?
HI ,
i want to check wether Airplane mode is on or not .. how to check that ?
thanks
+ how to check that the user is using WIFI or GPRS OR EDGE . how to differentiate ??

g.revolution
- 11,962
- 23
- 81
- 107
9
votes
1 answer
How to toggle Airplane Mode on Android 4.2 and above using root?
As is known, on Android 4.2 only system applications can toggle Airplane Mode. But I think it must be available for rooted devices. And I want to impliment it in my application for rooted devices with Build.VERSION.SDK_INT>=17.
How to toggle…

BArtWell
- 4,176
- 10
- 63
- 106
7
votes
2 answers
Activate airplane mode programmatically?
Does anyone know how to de/activate the airplane mode programmatically on the iPhone (OS 2.1)?

Felixyz
- 19,053
- 14
- 65
- 60
7
votes
1 answer
Broadcast Receiver is taking too long to receive in onReceive() after airplane mode turned off/on
I have created a simple Broadcast Receiver and it working absolutely fine except that if i turned on/off the Air Plane Mode, it is taking nearly 2 minutes to receive the broadcasted messages using onReceive method. Another thing is only this is…

Ilanthirayan Paramanathan
- 440
- 5
- 18
6
votes
2 answers
Reset Android mobile network signal?
I need my app to reset the device's mobile network signal. This would have the same effect as toggling airplane mode where connectivity is temporarily lost, a new IP address is assigned upon reconnection, and the LTE/signal icon in the status bar…

Keavon
- 6,837
- 9
- 51
- 79
6
votes
3 answers
How to make number not reachable (similar to call blocker)?
There are lot of call blocking application for mobile, like NQ Call Blocker. But in these applications, if we add a number to blacklist, the caller will hear "Busy Tone". Also the caller can hear "Ringing Tone" for a fraction of second. Which means,…

Gokul Nath KP
- 15,485
- 24
- 88
- 126
5
votes
5 answers
Is there a (legal) way to capture the ENTIRE screen under iOS?
I've tried several techniques to capture a screenshot of an app from within that app. None of the techniques appear to capture the status bar -- it ends up being black.
There apparently was once a way to do this, but that interface is internal and…

Hot Licks
- 47,103
- 17
- 93
- 151
5
votes
1 answer
How to be notified when iPhone enters airplane mode?
Is there a way for my app to be notified when the device enters (and leaves) airplane mode?

cfischer
- 24,452
- 37
- 131
- 214
5
votes
1 answer
Reachability on iOS 8 delayed?
The Reachability classes from Apple Reachability sample code seems to fire quite delayed when the user places the device into airplane mode. I am seeing roughly a 5 second gap between the user going to airplane mode and the actual notification.
Is…

cynistersix
- 1,215
- 1
- 16
- 30
5
votes
1 answer
Android: Programmatically Reset Phone Radio Network Signal
Is there a way to RESET Phone Radio Network Signal in android app ? (This might be equivalent to pulling out and in SIM card)
One possible way is to enable airplane mode, but I think it is not the correct approach.
…

Rohit
- 6,941
- 17
- 58
- 102
4
votes
1 answer
Does Handler.sendMessageDelayed() work when phone goes to sleep?
I am developing an android application and I want to reduce the power consumption. The method I believe is to put the phone into sleep mode whenever the user activity stops for a certain threshold period. I have three questions regarding this.
If I…

crazyaboutliv
- 3,029
- 9
- 33
- 50