Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting battery level in a Windows Phone 8 device?

How do I programatically get the battery level from a Windows Phone 8 device?

like image 562
djcouchycouch Avatar asked Aug 02 '12 19:08

djcouchycouch


1 Answers

The following works for me

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

like image 194
Sergei Grebnov Avatar answered Nov 19 '22 23:11

Sergei Grebnov