Guest User

Untitled

a guest
Apr 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. DevicePolicyManager devicePolicyManager = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
  2.  
  3. int passwordQuality = devicePolicyManager.getPasswordQuality();
  4.  
  5. if(devicePolicyManager.isActivePasswordSufficient()) {
  6. // password is sufficient
  7. } else {
  8. // password is NOT sufficient
  9. }
Add Comment
Please, Sign In to add comment