Click or drag to resize

Intents.ActionBatteryStartLog Field

ACTION_BATTERY_START_LOG Broadcast Action: Enable Battery Manager logging, if disabled.

Namespace: Com.Datalogic.Device
Assembly: datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
VB
public const String ActionBatteryStartLog = "value"

Field Value

Type: String
Remarks
ACTION_BATTERY_START_LOG Broadcast Action: Enable Battery Manager logging, if disabled.

The intent will have the following extra values:

EXTRA_BATTERY_LOG_IN_IDLE_MODE - boolean that indicates if logging must be executed in idle mode.
EXTRA_BATTERY_LOG_PERIOD - int representing the log period in seconds.
EXTRA_BATTERY_LOG_STATUS - boolean that indicates if field "Status" must be logged.
EXTRA_BATTERY_LOG_SOURCE - boolean that indicates if field "Source" must be logged.
EXTRA_BATTERY_LOG_CAPACITY - boolean that indicates if field "Capacity" must be logged.
EXTRA_BATTERY_LOG_TEMPERATURE - boolean that indicates if field "Temperature" must be logged.
EXTRA_BATTERY_LOG_VOLTAGE - boolean that indicates if field "Voltage" must be logged.
EXTRA_BATTERY_LOG_CURRENT - boolean that indicates if field "Current" must be logged.
EXTRA_BATTERY_LOG_CHARGE_LEFT - boolean that indicates if field "Charge Left" must be logged.

Broadcast intent adb example:

 adb shell am broadcast -a com.datalogic.device.intent.action.battery.START_LOG -n com.datalogic.battery/com.datalogic.battery.receiver.BatteryLogReceiver
 --ez com.datalogic.device.intent.extra.battery.LOG_IN_IDLE_MODE true
 --ei com.datalogic.device.intent.extra.battery.LOG_PERIOD 60
 --ez com.datalogic.device.intent.extra.battery.LOG_STATUS true
 --ez com.datalogic.device.intent.extra.battery.LOG_SOURCE true
 --ez com.datalogic.device.intent.extra.battery.LOG_CAPACITY true
 --ez com.datalogic.device.intent.extra.battery.LOG_TEMPERATURE true
 --ez com.datalogic.device.intent.extra.battery.LOG_VOLTAGE true
 --ez com.datalogic.device.intent.extra.battery.LOG_CURRENT true
 --ez com.datalogic.device.intent.extra.battery.LOG_CHARGE_LEFT true
 

[Android Documentation]

See Also