From 7f86827af44eb5267c8d21f355d109ff71b04f10 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Sun, 5 Jun 2011 16:05:02 -0700 Subject: [PATCH] Intent to manage application network data usage. Will be launched by Settings when presenting detailed network data usage for a specific application. Offers easy access into application settings to change behavior. Change-Id: I4ee0fdbc69f6a800ad59aca8db6b21f15ca71a66 --- api/current.txt | 1 + core/java/android/content/Intent.java | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/api/current.txt b/api/current.txt index 4a357856780bb..643df301c8c62 100644 --- a/api/current.txt +++ b/api/current.txt @@ -4968,6 +4968,7 @@ package android.content { field public static final java.lang.String ACTION_INSERT_OR_EDIT = "android.intent.action.INSERT_OR_EDIT"; field public static final java.lang.String ACTION_LOCALE_CHANGED = "android.intent.action.LOCALE_CHANGED"; field public static final java.lang.String ACTION_MAIN = "android.intent.action.MAIN"; + field public static final java.lang.String ACTION_MANAGE_NETWORK_USAGE = "android.intent.action.MANAGE_NETWORK_USAGE"; field public static final java.lang.String ACTION_MANAGE_PACKAGE_STORAGE = "android.intent.action.MANAGE_PACKAGE_STORAGE"; field public static final java.lang.String ACTION_MEDIA_BAD_REMOVAL = "android.intent.action.MEDIA_BAD_REMOVAL"; field public static final java.lang.String ACTION_MEDIA_BUTTON = "android.intent.action.MEDIA_BUTTON"; diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index a43c92f16cc8e..2f9627a4403d6 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -1159,6 +1159,15 @@ public class Intent implements Parcelable, Cloneable { @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) public static final String ACTION_UPGRADE_SETUP = "android.intent.action.UPGRADE_SETUP"; + /** + * Activity Action: Show settings for managing network data usage of a + * specific application. Applications should define an activity that offers + * options to control data usage. + */ + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + public static final String ACTION_MANAGE_NETWORK_USAGE = + "android.intent.action.MANAGE_NETWORK_USAGE"; + /** * A string associated with a {@link #ACTION_UPGRADE_SETUP} activity * describing the last run version of the platform that was setup.