Freigeben über


DeviceAdminReceiver.ActionPasswordFailed Field

Definition

Action sent to a device administrator when the user has entered an incorrect device or profile challenge password.

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

Field Value

Attributes

Remarks

Action sent to a device administrator when the user has entered an incorrect device or profile challenge password. You can at this point check the number of failed password attempts there have been with DevicePolicyManager#getCurrentFailedPasswordAttempts DevicePolicyManager.getCurrentFailedPasswordAttempts(). You will generally handle this in DeviceAdminReceiver#onPasswordFailed(Context, Intent, UserHandle).

The calling device admin must have requested DeviceAdminInfo#USES_POLICY_WATCH_LOGIN to receive this broadcast.

Java documentation for android.app.admin.DeviceAdminReceiver.ACTION_PASSWORD_FAILED.

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