The message queue implementation in Android 4.0.3 was modified in a way that requires us, the libraries developers, to update the way we delegate UI events to the user code. The error happens when the user tries to call DoEvents, show any modal dialog or pause the debugger inside the event.
Starting with B4A v1.92 there is a new method named BA.raiseEventFromUI.
This method posts a message to the message queue. When this message is processed the event will be raised.
Unlike BA.raiseEvent, no value is returned from this method.
It is only required to use this method inside UI events (such as onTouch, onFocusChange and onScrollChanged methods).
Starting with B4A v1.92 there is a new method named BA.raiseEventFromUI.
This method posts a message to the message queue. When this message is processed the event will be raised.
Unlike BA.raiseEvent, no value is returned from this method.
It is only required to use this method inside UI events (such as onTouch, onFocusChange and onScrollChanged methods).