I am trying to know whether a screen lock password is already present or not, when my app has started.
case 1: If there is a screen lock password already... I would do the locking (locknow()) using device manager and ask the user to login again.
case 2: If there is no screen lock password.... i would ask user to set a password using devicepolicymanager class.
But I was unable to know, how to check whether a screen lock password is already present or not. is there any boolean returning method in device manager api ?...i was unable any of such
I was able to know whether active admins are present or not.... now,can someone tell me how to know whether a screen lock password is already present or not ...
Is it a secuirty thing that app developers are not allowed to find?
Is there a system level approach?
can device policy manager help me to get that info?
thanks in advance