I am having an issue to handle power button in my android game in canvas
<p>The Game is running perfectly.
But when the power button is pressed while playing, it gets stuck.Thread keeps on running as the game screen is on but my update method is not working.
I would have to press home key button, unlock phone and resume my game, then it runs perfectly.</p>

<p>Can anybody help me.
Thanks in advance.</p>
