Android.App.Admin.DevicePolicyManager.ActionAddDeviceAdmin Field
Activity action: ask the user to add a new device administrator to the system.

Syntax

[Android.Runtime.Register("ACTION_ADD_DEVICE_ADMIN")]
public const string ActionAddDeviceAdmin

Remarks

Activity action: ask the user to add a new device administrator to the system. The desired policy is the ComponentName of the policy in the DevicePolicyManager.ExtraDeviceAdmin extra field. This will invoke a UI to bring the user through adding the device administrator to the system (or allowing them to reject it).

You can optionally include the DevicePolicyManager.ExtraAddExplanation field to provide the user with additional explanation (in addition to your component's description) about what is being added.

If your administrator is already active, this will ordinarily return immediately (without user intervention). However, if your administrator has been updated and is requesting additional uses-policy flags, the user will be presented with the new list. New policies will not be available to the updated administrator until the user has accepted the new list.

[Android Documentation]

Requirements

Namespace: Android.App.Admin
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8