Recognize a power button press
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3703071/how-to-hook-into-the-power-button-in-android">How to hook into the Power button in Android?</a>  </p>
</blockquote>



<p>I'd like to do something when user presses the power button.
Is there a way to recognize power button press on android ?
How do I subscribe it ?</p>
