Sahil Rally wrote:@Steve
Moreover iff you see Toast behavior , it does not obstruct the behavior of incoming call screen.
Toasts are a special UI mechanism, it is hard to equate your UI to them. But it did get me thinking.
Toasts are sort of like timed modal dialogs. They actually do prevent interacting with the UI for a brief period of time (at least on my phones.) I know Android has Modal Dialog support (see
http://developer.android.com/guide/topics/ui/dialogs.html). But do they have non-modal dialog support?
Turns out they do. There is a flag in the Windows Manager that can help:
FLAG_NOT_TOUCH_MODAL. So you would use a Dialog to display your stuff, and when you make the dialog use myDialog.getWindow().setFlags() with the FLAG_NOT_TOUCH_MODAL flag.
See if that helps you out. I think when dialogs appear they actually dim the background making it hard to see what is around them (to keep your focus). I am sure this is also a Flag, probably in the same WindowManager.LayoutParams class.