How to charge the battery on a Windows Phone 8 device?

How to programmatically get the battery level from a Windows Phone 8 device?

+6
source share
3 answers

Following work for me

Windows.Phone.Devices.Power.Battery.GetDefault (). RemainingChargePercent

+20
source

watch this video quickly. It mentions the API you mention.

+2
source

You can get the battery level and the remaining time on the battery of a Windows Phone 8 device using the battery class defined in the Windows.Phone.Devices.Power namespace. The following are some examples of its use.

0
source

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


All Articles