Is there a simpler way to read the battery voltage?
I found an example, which needs java code:
https://www.b4x.com/android/forum/threads/batteryprogressview.80374/#content
Ref: https://developer.android.com/reference/android/os/BatteryManager.html#EXTRA_VOLTAGE
I found an example, which needs java code:
https://www.b4x.com/android/forum/threads/batteryprogressview.80374/#content
int voltage = batteryIntent.getIntExtra(BatteryManager.EXTRA_VOLTAGE,-1);
Ref: https://developer.android.com/reference/android/os/BatteryManager.html#EXTRA_VOLTAGE