I would like to know if it is possible to switch between different screen locks (i.e. swipe lock and pattern lock) programmatically in Android.
I am working on an application based in security contexts. Depending on contexts defined by the user, different screen locks are activated in concordance with the actual context.
As I have seen, you can change between swipe lock and disabling screen lock using:
KeyguardManager keyguardManager = (KeyguardManager)getSystemService(Activity.KEYGUARD_SERVICE);
KeyguardLock lock = keyguardManager.newKeyguardLock(KEYGUARD_SERVICE);
lock.reenableKeyguard();
lock.disableKeyguard();
but it would be more secure if it was possible to change between a different screen lock rather than disabling it. Is it possible to change between different screen locks?