Windows-8.1

How to check whether data connection is enabled on Windows phone device

While using some internet services in your application you may need to check whether data connection is enabled or disabled on user’s phone.

So here is a simple code with the help of which you can check it. The code for the following is given below.

Chetan Gulati

Currently am doing B TECH in IT from Delhi Technological University. App development is my passion. Believe in quality rather than quantity.

  • georgebirbilis

    so where’s the code?

  • ad

    if (NetworkInterface.GetIsNetworkAvailable() == true)

    {

    //do something when internet is there
    }

Read more:
How to create your first Windows Phone app
How to change the App name and Tile name of your Windows phone app
Data binding in Windows Phone app – One way binding
Close