The Activity should be getting an onWindowFocusChanged(false) call. On Oct 7, 12:42 pm, Tim Wright <tim...@gmail.com> wrote: > Dear All, > > I am working on an application and I want to be able to detect when a > pop-up (e.g Charger notification, task switcher or the dialog that > pops up when you hold the power button) is obscuring the game so that > I can bring up the pause menu. These notifications do not produce an > "onPause" event. Does anyone know the correct way to do this? I know > it can be done by detecting the focus loss from the surfaceview, > however views can be added and removed I was wondering if there is a > better way of doing this than adding a focus handler to each one and > trying to keep track. > Thanks in advance, > > Tim
-- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en