1
I need to capture the event of the power off button android, and make when it is pressed a certain amount of times, appear an activty above the screen to type password.
- Pressed 5x the power button
- Cria Activity
If that’s not possible, I’d like to know how I open Activity but before it requires unlocking.
The programmer here from the company managed to capture the power button event, but said the rest is not possible.
Hello, David. Welcome to Stack Overflow. I suggest you try to solve one problem at a time. If need be, post more than one question, each complete with code than you tried and discovered so far.
– Pablo Almeida
I edited the question Pablo, thank you.
– Davi Salles
see this: http://stackoverflow.com/questions/3703071/how-to-hook-into-the-power-button-in-android
– Caique Oliveira