Search code examples
windows-phone-7windows-phone-7-emulator

How can I test my WP7 app under no Internet connection conditions in emulator?


I am developing a Windows Phone 7 App which is capable to work without internet connection but optionally loads some content from web if network is available.

How can I test this application in Phone Emulator under the condition of having no internet connection?

There is a Settions option available in the main menu, but unlike on real device there is no option to disable data connection. The only solution I came up with is to disable the WiFi adaptor of my development laptop, but this seems to be an ultimate option. Is there any way to force emulator to run in disconnected environment?


Solution

  • Like you said, I just disconnect my development computer from the internet whenever I want to test a wp7 app under no internet connection. You can't force it from the emulator, but you could probably turn it off using code, but that seems like too much work to me.

    Another StackOverflow post.

    From WP7 App Hub.