Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DeviceFirmwareVersion, OSVersion, DeviceStatus missing in Windows Phone 8.1 runtime

in my Silverlight Windows Phone 7/8 projects I always used these methods/classes to get informations about the user phone:

Microsoft.Phone.Info.DeviceStatus.DeviceFirmwareVersion;
System.Environment.OSVersion.Version;
Microsoft.Phone.Info.DeviceStatus.DeviceName;
Microsoft.Phone.Info.DeviceStatus.DeviceManufacturer;

But now in Windows Phone 8.1 runtime they are missing. Are there some alternatives? My app doesn't use networking. Thanks and sorry for bad english.

like image 503
user3384024 Avatar asked Aug 14 '26 10:08

user3384024


1 Answers

You can use the EasClientDeviceInformation class

e.g.

var deviceInfo = new EasClientDeviceInformation();
var manufacturer = deviceInfo.SystemManufacturer;
var name = deviceInfo.SystemProductName;
var firmwareVersion = deviceInfo.SystemFirmwareVersion;
var osVersion = "8.1"; // Only 8.1 so far. No os version method exists afaik in 8.1
like image 164
H77 Avatar answered Aug 18 '26 19:08

H77



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!