In my app, I have a home screen with 4 buttons on it. If, for some obscure and unfathomable reason, a user were to click on more than one button at the same time, all of the target activities would open in the order they were clicked.
I have seen a couple of questions on here about something similar, but they don’t really answer the question. Hopefully, I don’t have to override multitouch methods to handle it.
How can I avoid this behaviour, thus preventing multiple click events at the same time?
I had this exact issue in an application I developed. I found in testing that it was relatively easy to mash the screen with my hand and fire off onClick events for multiple buttons at the same time.
I used the same OnClickListener for all the buttons on the activity. The code was something like this :