How can I detect when the screen is locked?  I'm writing a game, and
have found that sometimes users will pause the game by just hitting
the power button to turn off the screen.  onPause() gets called then
as expected.  But onResume() gets called as soon as they turn the
screen back on, causing my game to start running again, even though
it's hidden behind the lock screen.  Calling getVisibility() on the
View also returns VISIBLE, even though it isn't.  How can I tell when
my activity is actually visible, not hidden by the lock screen?

Peter

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to