Android Question GestureDetector V2.1 - Input list in event

SteveTerrell

Active Member
Licensed User
Longtime User
B4A 3.2 release - not tried on earlier versions

I have found that using an Input list in the onDoubleTap event (and presumably other events as well), using legacy debugger (not tried with release) causes my program to (usually) crash.

The gesture detector is listening to a panel with long press disabled.

Crash is either "your program has stopped responding" or the program simply disappears from the tablet screen and the debugger drops back to the editor. There seems to be no log entries to indicate what happened (filtered or otherwise).

Using CallSubDelayed to show the input list and handle the selection seems to fix the problem.

Is this expected behaviour?


I did not see this problem when using the panel touch event

Steve
 

SteveTerrell

Active Member
Licensed User
Longtime User
This is the expected behavior on Android 4.0.3+. You cannot pause the program from inside such events. You will not encounter this with the core library views as the event is already handled as if CallSubDelayed was called.

As usual, thanks for the quick reply.

Steve
 
Upvote 0
Top