简体   繁体   中英

Device Status in Windows Phone 8.1

Are there any classes in Windows RunTime APIs to find the current device information(OS info, RAM size, power source) ?

The equivalent class in Windows Phone 8 is Microsoft.Phone.Info.DeviceStatus ( http://bit.ly/deviceStatus )

Any Help?

According to my knowledge and what I've searched currently there is no method that will tell you that. Similar problem according to WinRT was raised here .

As I've also searched looking at MSDN , there is also no alternative to System.Power.

You can check the battery status thought, but that won't help you to check if it is powered or not.

I'm also curious how this will be solved, hence IMO there should be such an ability when developing for phone to check if it's powered. Under WP8.0 for example BackgroundTransfers for large files required external power supply, and no I'm not able to check it - maybe it will be solved in final release.

As mentioned earlier, there is currently no straightforward way to get the device info on a windows phone 8.1 runtime app although its possible to get some infor using the:

Windows.Security.ExchangeActiveSyncProvisioning.EasClientDeviceInformation class http://msdn.microsoft.com/en-us/library/windows/apps/windows.security.exchangeactivesyncprovisioning.easclientdeviceinformation.aspx

Hope this helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM