Well long click would be better, double click was just an option if I can't detect long click.
I want this because my android app performs different functions depending on button press or button long press.
I want my B4J version of the app to behave similarly.
It depends on the settings you have put on windows. You can set the interval between the first click and the second (slow or fast) from the control panel
Or create a click counter yourself with a global variable that increments with each click. But in any case after a certain time it must reset otherwise you would have problems that it continues to count and distort the results ... (You may also have reported a double click with two clicks 10 minutes or an hour apart ... ) I do not recommend the latter solution