Nepster Nepster - 5 months ago 165
Android Question

Dropping event due to window no focus

I am getting this

but not able to catch reason ?

Dropping event due to no window focus:
KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=158, metaState=0,
flags=0x8, repeatCount=0, eventTime=1057872, downTime=1057872, deviceId=4,
displayId=0, source=0x101 }

Can anybody explain, What's the reason for this Warning?


This is perfectly normal if you take any action in response to this event that causes your window to lose focus. It's not a problem.

Note however that it is generally good policy to respond to ACTION_UP for KEYCODE_BACK, not ACTION_DOWN.