How to hook into the Power button in Android?
<p>On an Android device, where the only buttons are the volume buttons and a power button, I want to make the app react to presses on the power button (long and short). How is this done?</p>
