DeviceAdminReceiver.ActionDeviceAdminEnabled Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This is the primary action that a device administrator must implement to be allowed to manage a device.
[Android.Runtime.Register("ACTION_DEVICE_ADMIN_ENABLED")]
public const string ActionDeviceAdminEnabled;
[<Android.Runtime.Register("ACTION_DEVICE_ADMIN_ENABLED")>]
val mutable ActionDeviceAdminEnabled : string
Field Value
- Attributes
Remarks
This is the primary action that a device administrator must implement to be allowed to manage a device. This will be set to the receiver when the user enables it for administration. You will generally handle this in DeviceAdminReceiver#onEnabled(Context, Intent)
. To be supported, the receiver must also require the android.Manifest.permission#BIND_DEVICE_ADMIN
permission so that other applications can not abuse it.
Java documentation for android.app.admin.DeviceAdminReceiver.ACTION_DEVICE_ADMIN_ENABLED
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.