windowmanager.layoutparams WLP = new Windowmanager.layoutparams (width, height, WindowManager.LayoutParams.TYPE_SYSTEM_ERROR, WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL | WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN, pixelformat.translucent);
//type_system_error +flag_layout_in_screen with the ability to float above the status bar and handle touch and click events, Type_system_overlay, Type_syste M_alert not able to touch and click
Windowmanager.layoutparams WLP = new windowmanager.layoutparams (width, height, WindowManager.LayoutParams.TYPE_PHONE, WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL | WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH | windowmanager.layoutparams.flag_not_focusable,//does not occupy the focus to prevent other applications need to get focus when there is no response pixelformat.translucent);
This can not be moved over the status bar can be clicked
Windowmanager.layoutparams notes