Hello

When I run my game app and then push the sleep/lock-screen button my 
activity is destroyed (onDestroy is called) and then directly after, 
onCreate is called.

However, if I first put my app in the background then push 
the sleep/lock-screen button the activity is not destroyed.

Can anyone explain this behavior and/or how I can get around it (keeping the 
app alive). Angry Birds actually keeps the music running when the lock 
screen is on, maybe there's some trick with that you can use?

I do not want to handle state.

Thx.

-- 
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