title: How to start an activity if the power button is pressed (x) no of times in my android app?
body: <p>Please also explain how it works. This should also work when my app is closed.(it should be running in background)</p>