See the App Inventor Extensions document about how to use an App Inventor Extension.
For questions about this extension or bug reports please start a new thread in the App Inventor Extensions forum. Thank you.
For feature requests please contact me by email. To be a sponsor of a new method already is possible starting from only 10 USD! With your contribution you will help the complete App Inventor community. Thank you.
Jun 20th, 2016: Version 1 of the Battery Manager Extension released for App Inventor version nb149 and Companion version 2.37.
Aug 11th, 2016: Version 1a: avoid DX execution failed error: build each extension separately
Battery Manager extension.
Required permissions: none
Returns the current health constant.
Possible values are: cold, dead, good, overheat, over voltage, unknown, unspecified failure.
Returns the battery level.
Possible values are between 0% and 100%.
Returns the battery plugged status.
Possible values are: usb, ac, wireless or unknown.
Returns the battery status.
Possible values are: charging, full, discharging, not charging or unknown.
Returns the battery temperature in celcius.
Returns the battery voltage level in millivolts.
Event indicating that battery changed.
Tested successfully on Nexus 5 running Android 6.0.1.
Developing and maintaining snippets, tutorials and extensions for App Inventor takes a lot of time.
I hope it saved some of your time. If yes, then you might consider to donate a small amount!
or donate some mBTC to Address:
Thank you! Taifun
This work by Pura Vida Apps is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License
with attribution (name=Pura Vida Apps and link to the source site) required.