I'm trying to use a method in a module but have no idea how to actually use it. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

I'm trying to use a method in a module but have no idea how to actually use it.

There is a module called androidhelper for qpython and under androidhelper.Android.getBatteryHealth() I'm assuming it's to get the battery level but have no idea how to check for sure. But assuming it is to the battery level how do I actually use it to output the battery health? I honestly have no idea how to actually write the code to get it to display that. Any help would be appreciated I'm pretty new and just experimenting to learn.

26th Jun 2019, 11:37 PM
Dylan Campbell
Dylan Campbell - avatar
1 Answer
+ 5
If in doubt, check the official documentation! They have a guide for you.
27th Jun 2019, 4:54 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar