i'm trying to lock the keys of device after a particular event, like pressing of key 'a'== keycode=29
I'm able to get the guard, and also the lock.But it seems that the lock is not working.In API also nothing is mentioned about the TAG argument that needs to be passed to obtain the lock.
my code is:
Everytime i get state as false.
I have tried arguments of TAG as -- Application name, Activity name, qualified class name where this code is written, dummy value "a". But none of them seem to work
Please help !