Can someone please help me to get WindowManager.LayoutParams combination that can pass events to layers under TYPE_SYSTEM_ALERT or similar overlay type (that sits top of every other window).
Problem: My problem is when the window type TYPE_SYSTEM_ALERT get the focus it stop passing the motion events to the other applications under it.
Sample code
WindowManager.LayoutParams params = new WindowManager.LayoutParams(
WindowManager.LayoutParams.TYPE_SYSTEM_ALERT,
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |
WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE |
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN,
PixelFormat.TRANSLUCENT);
Requirement: I need to get the TYPE_SYSTEM_ALERT or similar overlay type that stay on top of every other window and also gets the motion events as well as passes the motion events to any overlay under the top layer (Possibly TYPE_SYSTEM_ALERT).
I need it to be stay on top of all other windows as I need to draw images on top of all windows without interrupting the motion event.