title: How can I catch the Power Button Long press?
body: <p>I am trying to develop an app that would do something after clicking the power button. </p>
  
  <p>I have a code that catches the onClick of Power button, but it don't seem to work. The screen would lock. </p>
  
  <p>Now I am trying to catch the onLongPress of the Power Button, preventing the "Power Off" options from appearing. Any suggestions on how to do that?</p>
  
  <p>thanks in advance.</p>