summaryrefslogtreecommitdiffstats
path: root/docs/html/training
diff options
context:
space:
mode:
authorAndrew Solovay <asolovay@google.com>2015-04-23 19:01:32 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-23 19:01:32 +0000
commitfc60f7012ef33f005ff6d85517733e32ba5edf82 (patch)
treebedf8301d2933afcf188edce8d50cb0e0c174265 /docs/html/training
parent9bafd3b5e08ea5af27e1aa2d82a56b95f60cb0e8 (diff)
parent591ba605aa91fdec05ac73399ee5893da63833e8 (diff)
downloadframeworks_base-fc60f7012ef33f005ff6d85517733e32ba5edf82.zip
frameworks_base-fc60f7012ef33f005ff6d85517733e32ba5edf82.tar.gz
frameworks_base-fc60f7012ef33f005ff6d85517733e32ba5edf82.tar.bz2
am 591ba605: am 26a8090a: cherrypick from lmp-docs docs: Listening for restrictions-changed Original Change-Id: I19c7150a9f36de226d00ad6d8db0e9210d5d135d
* commit '591ba605aa91fdec05ac73399ee5893da63833e8': cherrypick from lmp-docs docs: Listening for restrictions-changed Original Change-Id: I19c7150a9f36de226d00ad6d8db0e9210d5d135d
Diffstat (limited to 'docs/html/training')
-rw-r--r--docs/html/training/enterprise/app-restrictions.jd14
1 files changed, 12 insertions, 2 deletions
diff --git a/docs/html/training/enterprise/app-restrictions.jd b/docs/html/training/enterprise/app-restrictions.jd
index fc5dfcc..dd2c2c0 100644
--- a/docs/html/training/enterprise/app-restrictions.jd
+++ b/docs/html/training/enterprise/app-restrictions.jd
@@ -316,8 +316,18 @@ if (!appCanUseCellular) {
{@link android.content.Intent#ACTION_APPLICATION_RESTRICTIONS_CHANGED
ACTION_APPLICATION_RESTRICTIONS_CHANGED} intent. Your app has to listen for
this intent so you can change the app's behavior when the restriction settings
- change. The following code shows how to dynamically register a broadcast
- receiver for this intent:
+ change.</p>
+
+<p class="note">
+ <strong>Note:</strong> The {@link
+ android.content.Intent#ACTION_APPLICATION_RESTRICTIONS_CHANGED
+ ACTION_APPLICATION_RESTRICTIONS_CHANGED} intent is sent only to listeners
+ that are dynamically registered, <em>not</em> to listeners that are declared
+ in the app manifest.
+</p>
+<p>
+ The following code shows how to dynamically register a broadcast receiver for
+ this intent:
</p>
<pre>IntentFilter restrictionsFilter =