Android Question Adding BATTERY_PROPERTY_CURRENT_AVERAGE to java Code

In the java code posted by Johan Schoeman in the thread:
How to add the following two battery properties ?
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)
 
Top