AppRestrictionSchema
Admin
com.example.android.apprestrictionschema
21
PUBLISHED
Device Admin
Android
Java
Mobile
ADVANCED
screenshots/big_icon.png
screenshots/main.png
android.content.RestrictionsManager
A basic app showing how to allow a device administrator to restrict user
activities using the Android Device Administration API. The app exports
a custom policy that enables or disables a UI control. Device Administration
applications are able to enforce a specific value for this policy, as
directed by enterprise administrators.
` tag:
```xml
```
In this sample, that file can be found at
`Application/src/main/res/xml/app_restrictions.xml`. This file must be
also be declared inside of `ApplicationManifest.xml` using a ``
element:
```xml
```
At runtime, the current list of restrictions enforced by policy can be
checked by calling [RestrictionsManager.getApplicationRestrictions()][2].
[1]: http://developer.android.com/guide/topics/admin/device-admin.html
[2]: https://developer.android.com/reference/android/content/RestrictionsManager.html#getApplicationRestrictions()
]]>