In Android P: Dropping event due to no window focus: KeyEvent
问题 In Android P , application on start not working as expected with throwing warnings : W/ViewRootImpl: Dropping event due to no window focus: MotionEvent { action=ACTION_DOWN, KeyCode = DPAD_DOWN} and W/ViewRootImpl: Cancelling event due to no window focus: MotionEvent { action=ACTION_UP, KeyCode = DPAD_DOWN} and its not allowing any action to performed. Check Image for detailed warning. Note : Same Application is working fine in Android O , but in Android P , sometimes the focus is missing in