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.
Can anybody help me.
Thanks in advance.
I have got the solution.. Thank You all
I was doing this in onPause() method
and onResume() method
i was doing this _thread.setRunning(true)
i just commented setRunning(false) in onPause Method, Now it is working fine.