I am developing ui automation platform for android.
For some reason sometimes (very rare) click events can be dropped
When it happen I see in log
I/InputDispatcher( 2707): Dropped event because input dispatch is disabled.
Please advise what can be done to enable input dispatch.
Thank you in advance
There are certain conditions in which Input Dispatcher will drop the input events:
etc.
In your case, its executing case 4. Means something going fishy or your first input is not executed yet. So Input Dispatcher is disabled.
Check [method dropInboundEventLocked of middleware class InputDispatcher.cpp
It happened only when screen was off. Click event was turning screen on, but it event was quicker than turning screen on.
Now, I am checking if screen is off and turning it on