My WP7 application was not accepted because it does not load if the Internet is not available. I was looking for a way to test it and found this command
NetworkInterface.GetIsNetworkAvailable()
But it does not work on the emulator, and I do not have any device to check it. Can someone tell me if it returns false if the device is in airplane mode? If not, how can I check it?
Thanks Oscar
Edit: I also tried using this code:
try
{
wsClient.CurrenciesCompleted += new EventHandler<CurrencyConversion.CurrenciesCompletedEventArgs>(wsClient_CurrenciesCompleted);
wsClient.CurrenciesAsync(null);
}
catch
{
NetworkNotAvailable();
}
But I can not catch the exception, I also tried in the wsClient_CurrenciesCompleted method, but also not good.
Where can I check it out?
source
share