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
1
vote
1 answer
Want to find out if iPhone can receive incoming calls (airplane mode)
My application's users don't like interruptions like incoming phone calls. I want to find out if the device is in Airplane mode, warn the user about possible interruptions and recommend invoking Airplane mode.
The reachability examples tell me if…

iter
- 4,171
- 8
- 35
- 59
1
vote
0 answers
Check for Airplane mode while data roaming is enabled with Apple's Reachability Class
The below snippet is used to check the network availability in an application using Apple's Reachability class.
- (BOOL) networkAvailable{
return connectivityStatus != NotReachable && ![delegate isForcedOutOfCoverage];}
isForcedOutOfCoverage is an…

Dhammini F.
- 339
- 3
- 17
1
vote
1 answer
Android System App Permissions
I'm busy trying to add some functions to an app to do things like toggle airplane mode, or change APN settings etc. For this I need permissions like "write_secure_settings" and "write_apn_settings", which are only allowed for system apps. Just for…

RVZ
- 13
- 6
1
vote
1 answer
can we get location details(latitude,longitude)when iphone is in air plane mode?
I want to get latitude and longitude values using my app,when iphone is in Air Plane mode.Does GPS work in air plane mode?

harshiYL
- 251
- 2
- 4
- 13
1
vote
0 answers
Airplane mode in HTC devices (Android)
I am trying to make a simple airplane mode toggle app for android. I am able to turn the airplane mode ON but when I toggle it off, the mobile network is not turning back ON on my HTC Thunderbolt (Android 2.3.4). wifi is working fine. Wifi and…

user1720839
- 91
- 2
- 8
1
vote
0 answers
How can I know if airplane mode is on?
Possible Duplicate:
Determining if Airplane Mode is enabled on an iPhone?
My application is using the GPS, and I check its availability with :
if([CLLocationManager locationServicesEnabled] && [CLLocationManager authorizationStatus] ==…

Oyashiro
- 505
- 5
- 18
1
vote
2 answers
Android: LocationManager when Airplane mode on
I am testing the location part of my app with various configurations. In AirPlane mode I don't get any message sent to ILocationListener, good or bad, from the following LocationManager on an Android 2.2. In this case the bestProvider is…

Ian Vink
- 66,960
- 104
- 341
- 555
0
votes
1 answer
android:null pointer exception in airplane mode
I am making an app in which i have to check whether the device is in airplane mode or not and i am using follwing code and it is null pointer exception .My code is as follows:
public static boolean isAirplaneModeOn(Context context)
{
…
user881928
0
votes
1 answer
Implement airplane mode in android
I am making an app in which I want to display a pop up if airplane mode is active but when I use the following code, it switches my app to the airplane mode means my device goes to airplane mode. Where as I want if airplane mode is active, a device…
user1025050
0
votes
4 answers
trouble using Airplane Mode on Android
I have troube to use Airplane mode on my app. The app runs perfectly well on my emulator but not in my real phone when I try my apk.
Here is the code to activate the Airplane :
Settings.System.putInt(getContentResolver(),…

clement
- 4,204
- 10
- 65
- 133
0
votes
1 answer
make app go enable airport mode after set interval?
I am having a bit of difficulty with making an app on Android. I found a few classes to help out with the making, but I can't figure out how to implement things.
The app needs to do the following:
search for network signals and if none are found…

user1013391
- 1
- 3
0
votes
0 answers
Turn on/off airplane mode by voice from Android api23+
To toggle flight mode programmatically should be possible. First need to create some voice interaction service. And then to have an activity that can submit a request to that service to know what the user wanted. And in the end flight mode can be…
0
votes
0 answers
Detect status icon on Apple Watch
I would like to know if the Airplane mode of Apple watch is active, as I know it's impossible to know due limited API. Is possible to detect status icon of Apple watch so I can know if Airplane mode is on/off?
Status icons of watchOS

Avi Rok
- 550
- 1
- 4
- 7
0
votes
0 answers
Original error: socket hang up in between the test (Appium)
I am running automation on my iPhone 14 with ios version 16.5.1. I am using Appium 2.0 version 2.0.0-rc.5 . I am trying to automate disabling Airplane mode and enabling mobile data.
Whenever I am changing the Airplane mode or mobile data, appium…

Iamvishu11
- 1
- 1
0
votes
0 answers
Is it possible to turn on airplane mode manually?
ex. I've created a simple app in Android Studio using Kotlin, with only button to turn on airplane mode.
Is it possible to do it in newer versions of Android?
your text
I've tried to do it using permissions in manifest.xml:

hedi
- 23
- 4