I\'m trying to create an always-op-top button/clickable-image which stays on top of all the windows all the time.
The proof of concept is
If anyone still reading this thread and not able to get this working, I'm very sorry to tell you this way to intercept motion event is considered as bug and fix in android >=4.2.
The motion event you intercepted, although has action as ACTION_OUTSIDE, return 0 in getX and getY. This means you can not see all the motion position on screen, nor can you do anything. I know the doc said It will get x and y, but the truth is it WILL NOT. It seems that this is to block key logger.
If anyone do have a workaround, please leave your comment.
ref: Why does ACTION_OUTSIDE return 0 everytime on KitKat 4.4.2?
https://code.google.com/p/android/issues/detail?id=72746