Programming for android: How to check that screen lock has a password? on newest questions tagged android – Stack Overflow
I’m currently checking if there is a screen lock password with:
DevicePolicyManager.getgetPasswordMinimumLength() != 0
so if I see that the length is 0 I conclude there is no screen lock password and I prompt user to set one with
I wonder though if it’s a correct method of checking whether a screen lock password has been set?
Programming for android: programming-for-android