Metro Nuggets

Bitesized tidbits for building Modern (Metro) apps.

Test Your App With No Network

With Windows Phone 7, there was no way to be able to debug your app for when there might be no network connection. All you could do was Build > Deploy > Pray. With the release of the Windows Phone 8 SDK, that’s now changed.

The Solution

Load your WP7 or WP8 project into Visual Studio 2012, choose one of the Windows Phone 8 emulators, then click Tools > Simulation Dashboard and check the Enable Network Simulation checkbox. If the emulator you chose isn’t already running, it will run it for you.

From here, you choose the quality and speed of network, which includes No Network as an options.

image

Worth noting this simulation dashboard also lets you simulate reminders.

SL

Advertisements

2 responses to “Test Your App With No Network

  1. Pingback: Test Your Windows Phone App With No Network

  2. Garen Yöndem January 18, 2013 at 00:59

    This is a little weird, because i am doing a network check with NetworkInterface namecspace before initializing. It actually works on a real phone but it is not debugable with this dashboard. While the nonetwork setting selected from the dashboard and applied, my app passes the networkcheck i make in code then unable to download the data.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: