Take the 2-minute tour ×  I have developed a game using
andengine  I am facing a problem when using the power Button. If
I press the POWER Button while playing the game the screen turns
off and the onPause() is called as expected. But when I press
the HOME button or POWER button again to turn on the screen,
onResume() method is called and but the lockscreen shows up.  In
the onResume() method, I resume the music of the game.  So as a
result lockscreen shows up , but the game music plays in the
background. I do not want to play the music in the lockscreen.
Please help me solving this.Thank you  share|improve this
question android-developers.blogspot.de/2011/11/… –  user658042
Aug 30 '12 at 13:36 @alextsc perfect guide –  rajpara Aug 30 '12
at 13:47 @alextsc its a good tutorial..thank you. But for my
case it doesn't do the job –  Ajitha Aug 30 '12 at 19:31 add
comment  1 Answer  up vote 2 down vote accepted  The solution is
here: Activity handle when screen unlocked  By registering a
BroadcastReceiver filtering