From 1dac277f93a80c53a870b8924508dd2af81293de Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Fri, 26 Jun 2009 18:16:48 -0700 Subject: 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. --- core/java/android/content/Intent.java | 7 +++++++ core/res/res/values/strings.xml | 5 +++++ 2 files changed, 12 insertions(+) (limited to 'core') 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 diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index 9f1ed40..1ce9c76 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -1786,6 +1786,11 @@ Format + + USB debugging connected + + A computer is connected to your phone. + -- cgit v1.1