Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public void onPasswordFailed(Context context, Intent intent) {
  2. DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
  3. int numFailedAttempts = dpm.getCurrentFailedPasswordAttempts();
  4. if(numFailedAttempts > 4){
  5. //do stuff
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement