Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onPasswordFailed(Context context, Intent intent) {
- DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
- int numFailedAttempts = dpm.getCurrentFailedPasswordAttempts();
- if(numFailedAttempts > 4){
- //do stuff
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement