GoodGuyOnWeb
Member
In the java code posted by Johan Schoeman in the thread:
How to add the following two battery properties ?
BatteryProgressView
A wrap for this Github project. The is a B4A (with inline Java code) that drives the view with the current battery status - updated every 20 seconds via a timer. Sample Code Main Activity: #Region Project Attributes #ApplicationLabel: b4aBatteryProgressView #VersionCode: 1...
www.b4x.com
BATTERY_PROPERTY_CURRENT_AVERAGE
Added in API level 21
public static final int BATTERY_PROPERTY_CURRENT_AVERAGE
Average battery current in microamperes, as an integer. Positive values indicate net current entering the battery from a charge source, negative values indicate net current discharging from the battery. The time period over which the average is computed may depend on the fuel gauge hardware and its configuration.
Constant Value: 3 (0x00000003)
BATTERY_PROPERTY_CURRENT_NOW
Added in API level 21
public static final int BATTERY_PROPERTY_CURRENT_NOW
Instantaneous battery current in microamperes, as an integer. Positive values indicate net current entering the battery from a charge source, negative values indicate net current discharging from the battery.
Constant Value: 2 (0x00000002)