Questions tagged [airplane-mode]

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.

101 questions
4
votes
3 answers

turn off airplane mode in Android

I would like to turn off the airplane mode if num>50, I implemented this code (from Toggle airplane mode in Android) but when executed I get a force close, can any one help here? if(num>50){ // read the airplane…
rami
  • 93
  • 1
  • 3
  • 6
4
votes
2 answers

Airplane Mode Receiver in Manifest?

I am working on developing an Android app that will be used as a handheld controller in an industrial environment. In order to make the tablet less desirable to take home, I was going to try and programatically turn on Airplane Mode all the time but…
TronicZomB
  • 8,667
  • 7
  • 35
  • 50
3
votes
2 answers

Detect if iPhone is in Airplane mode?

I need a way to detect if the iPhone is in Airplane Mode or not, I did some research and found: iphone how to check the Airplane mode? Which does not work, also I know I can set SBUsersNetwork to show an alert when in airplane mode, but it will ask…
hzxu
  • 5,753
  • 11
  • 60
  • 95
3
votes
2 answers

What is the value of SIM state when "airplane mode" is turned on

I wonder what is the value of SIM state returned by TelephonyManager.getSimState() when "airplane mode" is turned on? This seems to be not directly specified anywhere in the SDK specification. Actually I need to get SIM operator code (i.e.…
Volo
  • 28,673
  • 12
  • 97
  • 125
3
votes
1 answer

NSDate slips back or forward an hour when in airplane mode or after DST transition

I have an application the plays an alarm sound at a scheduled time. This is setup as a recurring alarm that will go off every day at the same time. For example: Wake up at 6am every day. I first noticed a problem after the DST transition. I would…
krason
  • 45
  • 6
3
votes
4 answers

How to enable airplane mode on android using adb

I have an android phone on which I want to programatically toggle airplane mode. I've been unable to root this device, which has prevented any apps I'm running from having permission to edit these settings, so am using adb to open the settings menu…
nick_j_white
  • 534
  • 6
  • 27
3
votes
1 answer

UI iOS Automation: I want to background the app and click the settings panel to put the phone into airplane mode to test the apps offline behaviour

I'm trying to automate setting the iOS into airplane mode, but I don't know how to access the settings panel to do so. I have tried the following to be able to see if the settings panel is listed when the app is in the background so as to be able to…
3
votes
2 answers

How can i know airplane mode on or off in ios

i would like to check airplane mode on or off on boolean variable. for example : Bool airplaneMode = airplanemode; if(airplaneMode) { NSLoag(@"Airplane mode on"); } else { NSLoag(@"Airplane mode Off"); } i don't want to check Network is…
sohil
  • 818
  • 2
  • 15
  • 38
3
votes
1 answer

How to turn on/off airplane mode, even on new Android versions (and even with root)?

Starting with Android 4.2 , turning on/off airplane mode isn't supported using normal APIs. It should probably work when WRITE_SECURE_SETTINGS permission is granted, but that's only for system apps (as I've read). What should be done in order to do…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
3
votes
2 answers

How to check/switch the airplane mode programmatically in Windows 8?

I have to check if the Airplane Mode is enabled in Windows 8 and maybe switch its state. I am currently working on a C# .NET 4.0 Windows Forms application but the answers in this question shouldn't be limited by that.
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
2
votes
1 answer

Android Airplane Mode Detection for Honeycomb

I am having trouble detecting airplane mode enabled/disabled on honeycomb, the following broadcast receiver works fine on all versions/sets other than android 3.0/ honeycomb/tablets..
baboo
  • 1,983
  • 17
  • 23
2
votes
1 answer

How to turn airplanemode ON on Android programatically on API23

I'm trying to turn airplanemode on on Android but I got the following message: java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.AIRPLANE_MODE From my point of view (and some researches): (1) I'm…
brvboas
  • 29
  • 1
  • 4
2
votes
1 answer

Reachability: Airplane Mode with Wifi ON

I'm currently using Reachability to detect an available connection. This works great when there's nothing or when there's a good connection. But what if my user is on a plane with its own wifi node that is not connected to the internet at large?…
Matt Bearson
  • 993
  • 8
  • 15
2
votes
0 answers

Detect Airplane Mode on iOS in Objective-C

When accessing Safari or Email on the iPhone (at least 7.1) if airplane mode is on, an alert pops up that says; Turn Off Airplane Mode or Use Wi-Fi to Access Data. The two choices are Settings which takes you to Settings or OK which just cancels…
user1904273
  • 4,562
  • 11
  • 45
  • 96
2
votes
1 answer

Disable cellular radio in android 4.4 +

How can I disable/enable cellular network in android? I need to completly disable it for a short time, and since I have android 4.4+ airplane mode is hard to use. Is it possible to write code disabling only cellular network?
user2654072
  • 145
  • 1
  • 9