|
getLocationOnScreen(location) |
I was just checking targetSdkVersion requirements and they mention potentially using getLocationInWindow() instead of getLocationOnScreen() because of the new advanced window management.
I'm not too familiar with this, but maybe it's worth checking which method should be used in this particular scenario.