summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-06-19 10:35:21 -0700
committerDianne Hackborn <hackbod@google.com>2009-06-19 11:46:58 -0700
commit3d74bb4ab27ae9601f5c9c3706fad287845fb672 (patch)
tree535a85ff083f52453637c2ece5d643e79276c142 /core
parent03255de32d127d17504b6d475e6e79190dd637f8 (diff)
downloadframeworks_base-3d74bb4ab27ae9601f5c9c3706fad287845fb672.zip
frameworks_base-3d74bb4ab27ae9601f5c9c3706fad287845fb672.tar.gz
frameworks_base-3d74bb4ab27ae9601f5c9c3706fad287845fb672.tar.bz2
Add "why?" button to low battery dialog.
This takes the user to the power usage activity.
Diffstat (limited to 'core')
-rw-r--r--core/java/android/content/Intent.java9
-rw-r--r--core/res/res/values/strings.xml3
2 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java
index 11538b0..609fa74 100644
--- a/core/java/android/content/Intent.java
+++ b/core/java/android/content/Intent.java
@@ -1076,6 +1076,15 @@ public class Intent implements Parcelable {
*/
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
public static final String ACTION_APP_ERROR = "android.intent.action.APP_ERROR";
+
+ /**
+ * Activity Action: Show power usage information to the user.
+ * <p>Input: Nothing.
+ * <p>Output: Nothing.
+ */
+ @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
+ public static final String ACTION_POWER_USAGE_SUMMARY = "android.intent.action.POWER_USAGE_SUMMARY";
+
// ---------------------------------------------------------------------
// ---------------------------------------------------------------------
// Standard intent broadcast actions (see action variable).
diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml
index 05a20aa..bdfccd6 100644
--- a/core/res/res/values/strings.xml
+++ b/core/res/res/values/strings.xml
@@ -1302,6 +1302,9 @@
<string name="battery_low_percent_format">less than <xliff:g id="number">%d%%</xliff:g>
remaining.</string>
+ <!-- When the battery is low, this is the label of the button to go to the
+ power usage activity to find out what drained the battery. -->
+ <string name="battery_low_why">Why?</string>
<!-- Title of the alert when something went wrong in the factory test. -->
<string name="factorytest_failed">Factory test failed</string>