I would like to readout the battery capacity left from my Moto 360. I've come along watch faces that show this value, but I was wondering how to get it. I would like to display this value on my own watch face i'm creating.
From API level 21 it is possible to use BatteryManager.BATTERY_PROPERTY_CAPACITY
, but is there another command that I can use for API level 20?
Thanks
Per the battery monitoring training, you can get the current battery information by using:
Note that you need to continue to call this repeatedly to get the updated battery level. As waking up your app and checking this does take battery itself, they suggest: