Detect when security lock is on screen
<p>I have an game app which occasionally plays sounds. When the phone goes into standby onPause gets called and the game knows to go silent. But when I press the button on the side of my phone to wake it up out of standby, onResume is called and the game starts running and making sounds immediately - this would all be ok except that I have the security system on where you have to swype a certain pattern to unlock and the sounds come on even before the phone is unlocked. Is there some way to detect that the phone has yet to be unlocked?</p>
