Windows Phone Information (Model Number)

I want to know the model number of the device programmatically, as shown in the settings about the page about page

I am currently using

Microsoft.Phone.Info.DeviceStatus.DeviceName 

but this does not help and gives another typical meaning. Please help me how can I get the phone model / name as above.

+7
windows-phone windows-phone-7 windows-phone-8
source share
3 answers

You should use PhoneNameResolver , a simple class that resolves obscure device names, e.g.

RM-885_apac_prc_250

in friendlier sales names, for example

NOKIA Lumia 720

Here is a sample code:

 var phone = PhoneNameResolver.Resolve( DeviceStatus.DeviceManufacturer, DeviceStatus.DeviceName); SomeTextBox.Text = phone.FullCanonicalName; 

Additional information in this blog post: http://devblog.ailon.org/devblog/post/2013/01/21/Introducing-PhoneNameResolver%E2%80%93a-lib-to-decipher-Windows-Phone-models. aspx

+7
source share

you can use this function: -

  public static string getDeviceInfo(bool asList = false) { string r = ""; Geolocator locationservice = new Geolocator(); if (DeviceNetworkInformation.CellularMobileOperator != "") r += "CellularMobileOperator: " + DeviceNetworkInformation.CellularMobileOperator + Environment.NewLine; r += "CellularDataEnabled: " + DeviceNetworkInformation.IsCellularDataEnabled + Environment.NewLine; r += "WiFiEnabled: " + DeviceNetworkInformation.IsWiFiEnabled + Environment.NewLine; r += "IsNetworkAvailable: " + DeviceNetworkInformation.IsNetworkAvailable + Environment.NewLine; r += "Hardware Identifier: " + Convert.ToBase64String((byte[])Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceUniqueId")) + Environment.NewLine; r += "Location Services Permission: " + locationservice.LocationStatus + Environment.NewLine; r += "Language: " + CultureInfo.CurrentCulture.EnglishName + Environment.NewLine; r += "Locale: " + CultureInfo.CurrentCulture.Name + Environment.NewLine; //r += "Background Service Enabled: " + ScheduledActionService.Find("PeriodicAgent").IsEnabled + Environment.NewLine; r += "Runtime Version: " + Environment.Version + Environment.NewLine; r += "Maximum Memory: " + (DeviceStatus.DeviceTotalMemory / (1024 * 1024)) + "M" + Environment.NewLine; r += "Maximum Memory Available: " + (DeviceStatus.ApplicationMemoryUsageLimit / (1024 * 1024)) + "M" + Environment.NewLine; r += "Peak Memory Use: " + (DeviceStatus.ApplicationPeakMemoryUsage / (1024 * 1024)) + "M" + Environment.NewLine; r += "Charger: " + DeviceStatus.PowerSource + Environment.NewLine; r += "DeviceFirmwareVersion: " + DeviceStatus.DeviceFirmwareVersion + Environment.NewLine; r += "DeviceManufacturer: " + DeviceStatus.DeviceManufacturer + Environment.NewLine; r += "OS Version: " + Environment.OSVersion + Environment.NewLine; r += "User ID: " + settings[KeyString.USER_ID] + Environment.NewLine; var phone = PhoneNameResolver.Resolve(DeviceStatus.DeviceManufacturer, DeviceStatus.DeviceName); r += "Phone model(userfriendly form):" +phone.FullCanonicalName ; return r; } 
+1
source share

you can get DeviceName using advanced properties from PhoneInfo, so here is the link . Tested and working until today;)

Enjoy.

0
source share

All Articles