Loading docs/html/training/enterprise/app-restrictions.jd +12 −2 Original line number Diff line number Diff line Loading @@ -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 = Loading Loading
docs/html/training/enterprise/app-restrictions.jd +12 −2 Original line number Diff line number Diff line Loading @@ -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 = Loading