diff options
| author | 2015-04-23 18:20:06 +0000 | |
|---|---|---|
| committer | 2015-04-23 18:20:07 +0000 | |
| commit | 09cf4d500dd27342c913d2333f4f0fd2fa9dbfd0 (patch) | |
| tree | c3dd6b995afc0bc26fdac1f79c4ee773464d857c | |
| parent | f0936e2fb0e9f013f6079e7a733a41d42d49c3f3 (diff) | |
| parent | 8e5e960a9ca29992641a94913a9e0b5a1d78c07e (diff) | |
Merge "docs: Update to doc on listening for restrictions-changed intent" into lmp-docs
| -rw-r--r-- | docs/html/training/enterprise/app-restrictions.jd | 14 |
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 fc5dfcc9d0fd..dd2c2c015bce 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 = |