Share via


Intent.ActionBatteryChanged Field

Definition

Broadcast Action: This is a <em>sticky broadcast</em> containing the charging state, level, and other information about the battery.

[Android.Runtime.Register("ACTION_BATTERY_CHANGED")]
public const string ActionBatteryChanged;
[<Android.Runtime.Register("ACTION_BATTERY_CHANGED")>]
val mutable ActionBatteryChanged : string

Field Value

Implements

Attributes

Remarks

Broadcast Action: This is a <em>sticky broadcast</em> containing the charging state, level, and other information about the battery. See android.os.BatteryManager for documentation on the contents of the Intent.

<p class="note"> You <em>cannot</em> receive this through components declared in manifests, only by explicitly registering for it with Context#registerReceiver(BroadcastReceiver, IntentFilter) Context.registerReceiver(). See #ACTION_BATTERY_LOW, #ACTION_BATTERY_OKAY, #ACTION_POWER_CONNECTED, and #ACTION_POWER_DISCONNECTED for distinct battery-related broadcasts that are sent and can be received through manifest receivers.

<p class="note">This is a protected intent that can only be sent by the system.

Java documentation for android.content.Intent.ACTION_BATTERY_CHANGED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to