Windows Phone 8 Network Information

I am trying to get some network information, such as Network Type, Network Status, Cell ID, MCC, MNC, LAC, BID, NID, SID, Signal Strength, Operator Name.

The only thing I can get now is the name of the mobile operator using:

using Microsoft.Phone.Net.NetworkInformation; System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append("Mobile operator: "); sb.AppendLine(DeviceNetworkInformation.CellularMobileOperator); 

How can I get if WiFi is available, roaming is available, just true or false. Is there any solution for receiving any other information, such as a network, for example, if it is GSM - CDMA, for example?

Also look for a list of Wi-Fi networks, available places and get a list.

+8
windows-phone-8
source share
1 answer

You can only get information about connected network interfaces, and not about other hot spots or cell towers or their signal strength. You cannot force the phone to change connections.

You can find out if you are in GSM or CDMA or Wi-Fi, and with what speed you are connecting and you are in roaming.

See this page on MSDN and, in particular, this linked page for a walk through the available APIs.

You can get the network type (GSM / CDMA / WiFi) from Microsoft.Phone.Net.NetworkInformation.NetworkType (see here ).

Code snippet for getting NetworkInformation objects:

 private void UpdateNetworkInterfaces() { NetworkInterfaces.Clear(); NetworkInterfaceList networkInterfaceList = new NetworkInterfaceList(); foreach (NetworkInterfaceInfo networkInterfaceInfo in networkInterfaceList) { NetworkInterfaces.Add(networkInterfaceInfo.InterfaceName); } } 
+10
source share

All Articles