public class BatteryCtrl
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
RESULT_CODE_ERROR |
static int |
RESULT_CODE_SUCCESS |
| Constructor and Description |
|---|
BatteryCtrl(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
android.os.Bundle |
getBatteryLevel()
Get Battery Level
|
android.os.Bundle |
getChargingStatus()
Get Charging Status
|
android.os.Bundle |
getCycleCount()
Get Cycle Count
|
android.os.Bundle |
getDateOfManufacture()
Get Date Of Manufacture
|
android.os.Bundle |
getPluggedInStatus()
Get Plugged In Status
|
android.os.Bundle |
getSerialNumber()
Get Serial Number
|
android.os.Bundle |
getStateOfHealth()
Get State Of Health
|
android.os.Bundle |
getTechnology()
Get Technology
|
android.os.Bundle |
getTemperature()
Get Temperature
|
android.os.Bundle |
getVoltage()
Get Voltage
|
android.os.Bundle |
setChargingLimit(int limit)
Set Battery Charging Limit
|
public static final int RESULT_CODE_ERROR
public static final int RESULT_CODE_SUCCESS
public android.os.Bundle getChargingStatus()
public android.os.Bundle getCycleCount()
public android.os.Bundle getDateOfManufacture()
public android.os.Bundle getBatteryLevel()
public android.os.Bundle getPluggedInStatus()
public android.os.Bundle getSerialNumber()
public android.os.Bundle getStateOfHealth()
public android.os.Bundle getTechnology()
public android.os.Bundle getTemperature()
public android.os.Bundle getVoltage()
public android.os.Bundle setChargingLimit(int limit)
limit - the charging limit value should be within 50~100