Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Random Airplane Mode in Windows Phone

DZone's Guide to

Random Airplane Mode in Windows Phone

· Mobile Zone
Free Resource

For those who were developing for Windows Phone for quite a while, you probably know that the emulator itself exposes quite a few gems. The one I found today is rather useless at this point, but it’s interesting nonetheless.

The default emulator settings are fairly limited and the developer isn’t able to customize the OS as much as he would want to.

image

I already found a hook to get into the call settings, and today I found a way to get the emulator into the Airplane Mode, when all network communication is disabled.

NOTE: This behavior is detected only in the Mango emulator. The device running NoDo doesn’t do the same thing.

Go to Date+Time. While there, make sure that the status bar (where you see the carrier bars and the battery status) is visible. By default, the Set Automatically option (for the system time) should be enabled and you should see something like this:

image

Now, disable it and re-enable it (whenever you want). Look at what happens in the status bar.

image image

The emulator switched to airplane mode, then to network searching mode and then finally to the normal mode when a cellular network (emulated, of course) is available.

Currently, there is no way to trigger the Airplane Mode in the emulator other than by using blacklisted settings (requires more work).

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}