Windows Phone: device definition (make, model, etc.)

Is there a way to detect device data in Windows Phone?

Answer example for iOS

I use the DeviceStatus class, but it gives a cryptic name and version of the device.

DeviceStatus.DeviceManufacturer: "NOKIA" DeviceStatus.DeviceName: "RM-821_eu_denmark_251" Environment.OSVersion: "Microsoft Windows NT 8.0.10211.0" 

Is there a better way to get device information in a friendly way?

What I need:

 DeviceStatus.DeviceManufacturer: "NOKIA" DeviceStatus.DeviceName: "Nokia 920" Environment.OSVersion: "Microsoft Windows Phone 8" 

Any help is appreciated.

+4
source share
2 answers

There is no official way to do this, but Alan Mendelevich created an open source solution (MIT Licenese) for resolving device names. <br> Find it at https://github.com/ailon/PhoneNameResolver

It does not make an OS version, but since there are fewer of them, you can do it yourself.
All released versions are published by Microsoft at:

Windows Phone 7 Update History
Windows Phone 8 Update History

+8
source

Very useful link: how to get devicename name and production_name on a Windows device using c

  object manufacturerObject; Microsoft.Phone.Info.DeviceExtendedProperties.TryGetValue("DeviceManufacturer", out manufacturerObject); System.Diagnostics.Debug.WriteLine("DEvice Model NO. {0}", manufacturerObject.ToString()); 
+1
source

Source: https://habr.com/ru/post/1491804/


All Articles