Is it possible to open the power menu from within my application?
Asked
Active
Viewed 2,811 times
1
-
[Take a look at this](http://stackoverflow.com/questions/11338022/simulating-power-button-press-to-display-switch-off-dialog-box) – Ahmad May 09 '13 at 14:10
-
read http://stackoverflow.com/questions/3703071/how-to-hook-into-the-power-button-in-android, and http://stackoverflow.com/questions/10077905/override-power-button-just-like-home-button – atasoyh May 09 '13 at 14:12
-
His question is the other way around - can he simulate the long press. Take a look at this: http://stackoverflow.com/questions/11338022/simulating-power-button-press-to-display-switch-off-dialog-box – tbkn23 May 09 '13 at 14:22
-
According to this post it's not possible: http://stackoverflow.com/questions/9957104/how-can-i-open-power-off-dialog-on-android – tbkn23 May 09 '13 at 14:28
1 Answers
2
There is no public SDK access to open the power button menu programmatically, sorry.

Raghav Sood
- 81,899
- 22
- 187
- 195