Why does ACTION_OUTSIDE return 0 everytime on KitKat 4.4.2?
I have implemented a window with size 1 and want to catch ACTION_OUTSIDE event. mWindowManager = (WindowManager) getSystemService(WINDOW_SERVICE); WindowManager.LayoutParams mParams = new WindowManager.LayoutParams(1,1, WindowManager.LayoutParams.TYPE_PHONE, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE| WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL| WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH, PixelFormat.TRANSLUCENT); I get the trigger and I get the ACTION_OUTSIDE event, but when reading event.getRawX() and event.getRawY() they both return 0 every time. I tested the same thing with