diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-08-11 11:35:07 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-08-11 11:35:07 -0700 |
commit | e09cd7914c117e84bf78676d0e760c51aa147eb8 (patch) | |
tree | c1fed3807d19183ea4208c99519ef4c41f89eede /core | |
parent | 1060dd20dc27533311198c335a0cd94053a867e7 (diff) | |
parent | f9abb405903cab1fcd379388a96925524840c607 (diff) | |
download | frameworks_base-e09cd7914c117e84bf78676d0e760c51aa147eb8.zip frameworks_base-e09cd7914c117e84bf78676d0e760c51aa147eb8.tar.gz frameworks_base-e09cd7914c117e84bf78676d0e760c51aa147eb8.tar.bz2 |
Merge "New broadcast telling when an app is fully removed."
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/content/Intent.java | 18 | ||||
-rw-r--r-- | core/res/AndroidManifest.xml | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index a6e88cd..2579ced 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -1428,6 +1428,24 @@ public class Intent implements Parcelable, Cloneable { @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_PACKAGE_REMOVED = "android.intent.action.PACKAGE_REMOVED"; /** + * Broadcast Action: An existing application package has been completely + * removed from the device. The data contains the name of the package. + * This is like {@link #ACTION_PACKAGE_REMOVED}, but only set when + * {@link #EXTRA_DATA_REMOVED} is true and + * {@link #EXTRA_REPLACING} is false of that broadcast. + * + * <ul> + * <li> {@link #EXTRA_UID} containing the integer uid previously assigned + * to the package. + * </ul> + * + * <p class="note">This is a protected intent that can only be sent + * by the system. + */ + @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) + public static final String ACTION_PACKAGE_FULLY_REMOVED + = "android.intent.action.PACKAGE_FULLY_REMOVED"; + /** * Broadcast Action: An existing application package has been changed (e.g. * a component has been enabled or disabled). The data contains the name of * the package. diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 30c11df..dc0106c 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -37,6 +37,7 @@ <protected-broadcast android:name="android.intent.action.PACKAGE_REPLACED" /> <protected-broadcast android:name="android.intent.action.MY_PACKAGE_REPLACED" /> <protected-broadcast android:name="android.intent.action.PACKAGE_REMOVED" /> + <protected-broadcast android:name="android.intent.action.PACKAGE_FULLY_REMOVED" /> <protected-broadcast android:name="android.intent.action.PACKAGE_CHANGED" /> <protected-broadcast android:name="android.intent.action.PACKAGE_RESTARTED" /> <protected-broadcast android:name="android.intent.action.PACKAGE_DATA_CLEARED" /> |