DevicePolicyManager.ActionAddDeviceAdmin Field

Definition

Activity action: ask the user to add a new device administrator to the system.

[Android.Runtime.Register("ACTION_ADD_DEVICE_ADMIN")]
public const string ActionAddDeviceAdmin;
[<Android.Runtime.Register("ACTION_ADD_DEVICE_ADMIN")>]
val mutable ActionAddDeviceAdmin : string

Field Value

Attributes

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 #EXTRA_DEVICE_ADMIN 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 #EXTRA_ADD_EXPLANATION 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.

Java documentation for android.app.admin.DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN.

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.

Applies to