public class

BatteryManager

extends Object
java.lang.Object
   ↳ android.os.BatteryManager

Class Overview

The BatteryManager class contains strings and constants used for values in the ACTION_BATTERY_CHANGED Intent.

Summary

Constants
int BATTERY_HEALTH_DEAD
int BATTERY_HEALTH_GOOD
int BATTERY_HEALTH_OVERHEAT
int BATTERY_HEALTH_OVER_VOLTAGE
int BATTERY_HEALTH_UNKNOWN
int BATTERY_HEALTH_UNSPECIFIED_FAILURE
int BATTERY_PLUGGED_AC Power source is an AC charger.
int BATTERY_PLUGGED_USB Power source is a USB port.
int BATTERY_STATUS_CHARGING
int BATTERY_STATUS_DISCHARGING
int BATTERY_STATUS_FULL
int BATTERY_STATUS_NOT_CHARGING
int BATTERY_STATUS_UNKNOWN
Public Constructors
BatteryManager()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int BATTERY_HEALTH_DEAD

Constant Value: 4 (0x00000004)

public static final int BATTERY_HEALTH_GOOD

Constant Value: 2 (0x00000002)

public static final int BATTERY_HEALTH_OVERHEAT

Constant Value: 3 (0x00000003)

public static final int BATTERY_HEALTH_OVER_VOLTAGE

Constant Value: 5 (0x00000005)

public static final int BATTERY_HEALTH_UNKNOWN

Constant Value: 1 (0x00000001)

public static final int BATTERY_HEALTH_UNSPECIFIED_FAILURE

Constant Value: 6 (0x00000006)

public static final int BATTERY_PLUGGED_AC

Power source is an AC charger.

Constant Value: 1 (0x00000001)

public static final int BATTERY_PLUGGED_USB

Power source is a USB port.

Constant Value: 2 (0x00000002)

public static final int BATTERY_STATUS_CHARGING

Constant Value: 2 (0x00000002)

public static final int BATTERY_STATUS_DISCHARGING

Constant Value: 3 (0x00000003)

public static final int BATTERY_STATUS_FULL

Constant Value: 5 (0x00000005)

public static final int BATTERY_STATUS_NOT_CHARGING

Constant Value: 4 (0x00000004)

public static final int BATTERY_STATUS_UNKNOWN

Constant Value: 1 (0x00000001)

Public Constructors

public BatteryManager ()