From dbf6785c6765c80d3e9c36505bad5e0777aa127d Mon Sep 17 00:00:00 2001 From: Casey Ho Date: Tue, 17 Mar 2015 15:59:39 -0700 Subject: [PATCH] Javadoc for ACTION_SCREEN_ to indicate they cannot be registered in the manifest. Change-Id: Ic97a36498628f7f249b6776df455e01aaa995ae4 --- core/java/android/content/Intent.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 3222b2b72342c..8632db105e170 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -1512,6 +1512,10 @@ public class Intent implements Parcelable, Cloneable { *

* See {@link android.os.PowerManager#isInteractive} for details. *

+ * You cannot receive this through components declared in + * manifests, only by explicitly registering for it with + * {@link Context#registerReceiver(BroadcastReceiver, IntentFilter) + * Context.registerReceiver()}. * *

This is a protected intent that can only be sent * by the system. @@ -1532,6 +1536,10 @@ public class Intent implements Parcelable, Cloneable { *

* See {@link android.os.PowerManager#isInteractive} for details. *

+ * You cannot receive this through components declared in + * manifests, only by explicitly registering for it with + * {@link Context#registerReceiver(BroadcastReceiver, IntentFilter) + * Context.registerReceiver()}. * *

This is a protected intent that can only be sent * by the system. @@ -1569,7 +1577,7 @@ public class Intent implements Parcelable, Cloneable { /** * Broadcast Action: The current time has changed. Sent every - * minute. You can not receive this through components declared + * minute. You cannot receive this through components declared * in manifests, only by explicitly registering for it with * {@link Context#registerReceiver(BroadcastReceiver, IntentFilter) * Context.registerReceiver()}. @@ -1915,7 +1923,7 @@ public class Intent implements Parcelable, Cloneable { * appropriately. * *

- * You can not receive this through components declared + * You cannot receive this through components declared * in manifests, only by explicitly registering for it with * {@link Context#registerReceiver(BroadcastReceiver, IntentFilter) * Context.registerReceiver()}. @@ -1942,7 +1950,7 @@ public class Intent implements Parcelable, Cloneable { * contents of the Intent. * *

- * You can not receive this through components declared + * You cannot receive this through components declared * in manifests, only by explicitly registering for it with * {@link Context#registerReceiver(BroadcastReceiver, IntentFilter) * Context.registerReceiver()}. See {@link #ACTION_BATTERY_LOW},