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
2
votes
4 answers
How to check if iPhone is in Airplane Mode with Swift
I'd like to check whether flight mode is activated. If so, I need to show a warning message.
How can I check whether flight (airplane) mode is active using Swift?

Christian
- 6,961
- 10
- 54
- 82
2
votes
1 answer
How to change Airplane Mode programmatically?
I am following this 2 tutorial. Tutorial 1 and Tutorial 2. But When i run thid project in my Moto G phone its unfortunately stop means after 17 api this is not working & give error
Caused by: java.lang.SecurityException: Permission Denial: not…

Jigar Shekh
- 2,800
- 6
- 29
- 54
2
votes
1 answer
Switching to airplane mode using Android >4.4x
I need some help and hope to find an advice by asking you, clever people. I want to switch to airplane mode on Android JellyBean/Kitkat (API 17+)...
I searched for hours but I don't get a working result/information.
At the moment I could only…

Martin Pfeffer
- 12,471
- 9
- 59
- 68
2
votes
0 answers
Distinguish AirPlane mode and no internet connection
I have read discussion over here:
Determining if Airplane Mode is enabled on an iPhone?
I conclude that I cannot determine whether AirPlane mode is ON or OFF if i got Cellular Data OFF and WiFi OFF. BUT recently i have checked how Facebook solve…

Szu
- 2,254
- 1
- 21
- 37
2
votes
0 answers
android settings: not found (/system/bin/settings missing)
I've built a tasker like app called Condi.
In order to enable disable airplane mode in the latest Jellybeans and higher I use this terminal command:
settings put global airplane_mode_on 1
this works well but on some phones the settings command is…

Anton Wolkov
- 163
- 2
- 10
2
votes
2 answers
Changing System.Global Settings. Is it possible? - Android
I am little confused about System.Global. According to this document (third point under Important Behavioral Changes) it says that few of the features like turning airplane mode on/off have been include in System.Global in Android 4.2 and higher so…

ik024
- 3,566
- 7
- 38
- 61
2
votes
3 answers
Can an app request airplane mode to be turned ON then detect the user has done so?
I am building an app that should only be used if airplane mode is activated. The app is for people that are not tech savvy to say the very least. Therefore, I cannot expect them to swipe up and click the airplane icon. What is the closest I can get…

Zia
- 14,622
- 7
- 40
- 59
2
votes
0 answers
Turn off/on cell radio on jelly bean
Is there any way to disable the cell antenna in android 4.2 and up? I need to be able to disable it from my application. My current implementation works until 4.1, using the airplane mode, but as I found out now, airplane mode can't be changed…

Cristian Holdunu
- 1,880
- 1
- 18
- 43
2
votes
1 answer
Handling Airplane Mode with HTTP Requests
My app has quite a few occasions where it makes HTTP post requests. I discovered during testing that if the user is in airplane mode when this request is made, the app crashes. So, in an effort to handle this situation elegantly, I call a function…

AndroidDev
- 20,466
- 42
- 148
- 239
2
votes
1 answer
Check and Toggle Airplane Mode with Private APIs on iPhone
Does anyone know how to check and toggle Airplane mode using the Private APIs? (No, SCNetworkReachability is not good enough, and yes, I'm happy to use private APIs that will potentially break in the future.)

Russ McBride
- 51
- 3
2
votes
1 answer
Anti-distraction for Android apps
We've had requests for anti-distraction features for one of our apps. The idea is while in certain parts of the app, the user does not want to be interrupted by incoming phone calls, alarms, or anything else. I don't know how much of this can be…

Ted Hopp
- 232,168
- 48
- 399
- 521
1
vote
1 answer
Airplane mode on iPod Touch -- revisited
The situation is this: We have an app that records sound. If the app is running on a second generation iPod Touch and airplane mode is OFF then there are periodic noises that end up in the recording due to the WIFI activity of the iPod.
So I want…

Hot Licks
- 47,103
- 17
- 93
- 151
1
vote
0 answers
When turned Airplane mode ON in Iphone and connected to wifi. Iphone shows airplane mode is OFF in flutter
I am using airplane_mode_checker: ^1.0.2 to determine if airplane mode is turned on or not.
When I am turning airplane mode on, and no wifi is connected so it shows that airplane mode is ON.
But when I connects t any wifi, when airplane mode is ON,…

Priyanshu Paliwal
- 601
- 6
- 19
1
vote
0 answers
android airplane permission doesn't work properly - full example?
I've found a lot of examples here but no one works for me...I can't understand what's wrong.what I need is to enter the "airplane mode" in my app and I search for a full example.
What I have done is
1. request permission in manifest (I've seen I…

DanB
- 57
- 7
1
vote
1 answer
Android: does flight mode turn off radio completely or just transmission portion?
I have an Android application that uses both ble and wifi. Periodically ble locks up and no longer detects devices. while fault-finding the lock up, I noticed that I can reestablish normal operation by switching flight/airplane mode on an off. …

atommike
- 137
- 1
- 1
- 8