Network Access Priority on Windows Phone 7

Source: Internet
Author: User
Tags network function

For a heavy network dependent person, whether it is IOS 4, Android, or Windows Phone 7, I believe that the traffic fee in the monthly phone bill will be indispensable. If you use network resources unreasonably, once the traffic exceeds the limit of the package, the money in your wallet will flow out like a tap.

Windows Phone 7 is associated with many background services, such as Windows Live platform, marketplace, and Xbox Live ...... Pay attention to your network traffic when enjoying all the convenient services. Different from the previous Windows Mobile Phone operating system, developers will find that you are no longer able to determine/control the network connections currently used on the Internet. So how can we effectively help users Reduce Unnecessary network fees?

In fact, you don't have to worry about this. Currently, Windows Phone 7 can be accessed through three channels:

    1. Connect the USB cable to the computer and access the Internet through the computer network
    2. Connect to the Internet through Wi-Fi
    3. Use the data network of your mobile phone to access the Internet.

The Network Request priority of Windows Phone 7 is arranged in the above Order. If your mobile phone is inserted with a USB cable, it will use a USB cable to access the Internet through your computer, followed by a Wi-Fi network. The telephone data network (such as GPRS) is used only at the end. Therefore, if you have configured Wireless Access for mobile phones and Wi-Fi nodes at home or in the company, you do not have to worry about GPRS data traffic.

Finally, if you are not at ease, you can directly disable the data network function of the phone in the system settings, so as to fundamentally solve the problem.

The most basic network status judgment, if there is no network connection, all operations will not continue.

 
Microsoft. Phone. net. networkinformation. networkinterface. getisnetworkavailable ()

 

Ii. Determine the network type (GSM/CDMA/WiFi/Ethernet ):

In general applicationsProgramYou need to know three network statuses: No network, WiFi/Ethernet, and mobile network.

The difference is:

1. "No network": I don't explain it. Everyone knows it.

2. "WiFi/Ethernet": Generally, the speed is faster than that of the mobile phone network, regardless of traffic. It is more suitable for big data operations, such as downloading an offline map or something.

3. "mobile network": 2G and 3G networks are regarded as such. The advantage is convenience. As long as mobile phones and carriers support it and there is a signal, there is a network. The disadvantage is that the cost is high, and the speed is generally not as fast as the above.

We should provide appropriate services from the user's perspective based on the user's network environment. This requires you to determine the network status in the application and then take appropriate actions.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.