top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to determine the mobile operator in Windows Phone 8.1?

+2 votes
272 views
How to determine the mobile operator in Windows Phone 8.1?
posted Mar 12, 2015 by Puhal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Previously in WP8.0,To determine mobile operator we are using

DeviceNetworkInformation.CellularMobileOperator.

string MobileOperatorName=DeviceNetworkInformation.CellularMobileOperator;

WP8.1:

public void GetMobileOperatorName()  
        {  
            var result = NetworkInformation.GetConnectionProfiles();  
            string CarrierName = "";  
            foreach (var connectionProfile in result)  
            {  
                if (connectionProfile.IsWwanConnectionProfile)  
                {  
                    foreach (var networkName in connectionProfile.GetNetworkNames())  
                    {  
                        CarrierName = networkName;//Get mobile operator Name  
                        break;  
                    }  
                }  
            }  
        }  

Note: You must enabled your data connection.

answer Mar 13, 2015 by Jdk
Similar Questions
+2 votes

I need XAP File for put my own application in my windows phone local store but i dont know where the XAP file placed in my application...........

+5 votes

Hi Now i have an code in windows phone OS 7.1 i need to update the OS to 8.0 is there any possible to update the OS...

+1 vote

How to use windows phone default date picker control......

+1 vote

I am using Visual Studio 2013 for developing windows phone application how to test my application any one explain how can i achieve this... thanks in advance:)

...