Implement a top level window from a broadcast receiver

Posted by kwatts on Stack Overflow See other posts from Stack Overflow or by kwatts
Published on 2010-04-16T23:09:04Z Indexed on 2010/04/16 23:13 UTC
Read the original article Hit count: 134

Filed under:

I have a broadcast receiver that listens for incoming calls, then displays a popup. The popup is a dialog type of theme and has FLAG_NOT_FOCUSABLE and FLAG_NOT_TOUCHABLE - basically, it's an informational window that goes away after x seconds, and is not meant to interfere or take focus over anything else.

The issue is that the incoming call intent, built into android, is getting the broadcast after my intent. This is causing that window to be stacked in front of mine. How to I get my window to always be on top?

Thanks!

© Stack Overflow or respective owner

Related posts about android