How to lock Screen Android -


i working on android fingerprint screen locker. how locked , unlocked android device programetically. used ontouchlistner on image , count time of action_down (means thumb pressed). on action_down want code unlock.

anyone please

to lock device programmatically use:

devicepolicymanager devicemanger = (devicepolicymanager)getsystemservice( context.device_policy_service); 

then call:

devicemanger.locknow();  

wherever need lock it.

hope helps!


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -