Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: How to programmatically invoke PIN screen directly?

Tags:

android

screen

Currently with the 2.2 API I am able to lock the device via DevicePolicyManager.lockNow().

Having called that method I get a standard Android lock screen. I have to unlock the device to see the next sceen I'm actually interested in - the PIN screen.

So, my question is "Is it possible to invoke PIN screen directly (without getting to the lock screen first)?".

like image 589
Vit Khudenko Avatar asked Nov 14 '22 22:11

Vit Khudenko


1 Answers

you can start an intent with action set to DevicePolicyManager.ACTION_SET_NEW_PASSWORD

like image 72
Naresh Avatar answered Dec 15 '22 08:12

Naresh