I need to debug a situation that happens when no network connectivity is present for the device.
But how can I simulate this?
As soon as I connect my device using Zune, it get network connectivity automatically.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use a preprocessor directive, such as #if DEBUG, to return false from a custom method.
Or simply, turn off internet on your PC. You can disable the Local Area Connection or Wireless Network Connection (whatever you use), to disable internet on your PC.
Make sure the phone is in airplane mode at the same time 😉
Example (works on both phone and emulator):