How to Programmatically Get the Cellular Mobile Operator in Window Phone?

There are times when you want to retrieve the Cellular Mobile Operator of the Phone from your App. The Windows Phone 8 SDK provides an easier way to access it with the Static CellularMobileOperator property defined in the DeviceNetworkInformation class.

How to Programmatically Get the Cellular Mobile Operator in Window Phone?

Here’s a simple example of how to use the CellularMobileOperator property and the DeviceNetworkInformation class to retrieve the Mobile Operator.

var CellularNetwork = DeviceNetworkInformation.CellularMobileOperator;

MessageBox.Show(CellularNetwork);
How to Programmatically Get the Cellular Mobile Operator in Window Phone?
How to Programmatically Get the Cellular Mobile Operator in Window Phone?

The above example was tried on the actual windows phone device running on Vodafone India Network. If the same code is run on the Windows Phone emulator, one will receive “Fake GSM Network”…

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...