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:
- Connect the USB cable to the computer and access the Internet through the computer network
- Connect to the Internet through Wi-Fi
- 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.