diff options
| author | Dianne Hackborn <hackbod@google.com> | 2009-06-26 18:16:48 -0700 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2009-06-30 13:40:51 -0700 |
| commit | 1dac277f93a80c53a870b8924508dd2af81293de (patch) | |
| tree | ec4687e36a6703c0ffe9434748a5fe66975b42e7 /core/java/android/content | |
| parent | 9848f11fd8788b985330183aeb83cc589b8b14ae (diff) | |
| download | frameworks_base-1dac277f93a80c53a870b8924508dd2af81293de.zip frameworks_base-1dac277f93a80c53a870b8924508dd2af81293de.tar.gz frameworks_base-1dac277f93a80c53a870b8924508dd2af81293de.tar.bz2 | |
Implement issue #1943927 (need notification in status bar when adb is active)
This is a little hacky -- we just assume that if adb is enabled and power
is connected through usb, then it is active.
The icons and text are temporary until final design is provided.
Diffstat (limited to 'core/java/android/content')
| -rw-r--r-- | core/java/android/content/Intent.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 6fe5506..6b723bc 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -1290,6 +1290,13 @@ public class Intent implements Parcelable { @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_BATTERY_LOW = "android.intent.action.BATTERY_LOW"; /** + * Broadcast Action: Indicates the battery is now okay after being low. + * This will be sent after {@link #ACTION_BATTERY_LOW} once the battery has + * gone back up to an okay state. + */ + @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) + public static final String ACTION_BATTERY_OKAY = "android.intent.action.BATTERY_OKAY"; + /** * Broadcast Action: External power has been connected to the device. * This is intended for applications that wish to register specifically to this notification. * Unlike ACTION_BATTERY_CHANGED, applications will be woken for this and so do not have to |
