Take the 2-minute tour ×

Is there any way switch on/off flight mode programmatically in Windows Phone 7.5. What I want to do is create background task which will be check time and switch on/off flight mode.

Thanks in advance.

share|improve this question

2 Answers 2

up vote 6 down vote accepted

No, this functionality is not available.

It was a design principle behind the platform that applications should not be able to do things without the user knowing it.
If such functionality was available then it would be possible for an app (either deliberately or accidentally-though a bug) to get the devices state in a setting other than what they user may expect. In such a scenario users will typically blaim the phone/platform for what has happened, not a misbehaving application.

share|improve this answer
Hmmmm, so bad. So if I want to use it for personal purposes f.e after 8 PM switch on flight mode it would be impossible. Maybe there is some workaround or system/dll hack? –  Arterius Nov 21 '11 at 18:31
@Arterius No work around. Any backdoor way of implementing such functionlaity would break the intention behind not providing an API for this. If you need a device which can run apps which have the ability to enable and disable flight mode, WP7 is not it. –  Matt Lacey Nov 21 '11 at 18:33
Ok Matt, thank you for your answer, it's now clear for me! –  Arterius Nov 21 '11 at 18:35

Though you cannot programatically do it (as others have mentioned), you can send the user directly to the proper page in the settings panel and allow them to do it. Here's an example of using the ConnectionsSettingsTask:


You would want to set the ConnectionSettingsType property:


To 'AirplaneMode'.

share|improve this answer

Your Answer


