I am developing an sensor based app to unlock & lock device using sensors. I am able to lock the device using Device Administrator API.
But, Unfortunately I am unable to find any code to unlock the screen programmatically. I have searched over Google & other Android Development sites too. Then, too I didn't find any solution.
Tried several tricks like wakelock but it doesn't work for some devices & eats battery Then, I tried KeyguardManager but it removes the lockscreen but not does not unlock the device
I am trying to use Receiver for receive screen on/off events but I don't know how to make it
Hope, Any one can help me
I already had thorough search but no hopes
Thanks in advance.