[android-developers] Re: Why app still runs during a long-press on the power key (or end call key)?
I recently ran into the same problem while writing a game except that
I noticed it for long pressing the home key. For that it looks like
onPause doesn't get called, but onWindowFocusChanged with an argument
of false does. If the user presses back from the dialog then you get
onWindowFocusChanged with an argument of true and onUserInteraction
called. Long pressing the end call button probably behaves similarly.
On Nov 24, 4:54 am, Philip <phwang...@gmail.com> wrote:
> Dear all,
>
> Like as my HTC G2, when i long press the end call key, the phone
> option dialog shows and my app blurs. But the animation in the app
> still runs behind the dialog.
> I hope that the app stops or pauses when i long press the end call
> key. Can i do this?
>
> Any help, i would be grateful.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home