Capture android power button event with locked screen

Asked

Viewed 70 times

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.

  1. Pressed 5x the power button
  2. 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.

  • I edited the question Pablo, thank you.

  • see this: http://stackoverflow.com/questions/3703071/how-to-hook-into-the-power-button-in-android

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.