I have a case where when I press a button it communicates with a web service the problem I am having is if you double click that button it calls the web services twice causing a double submission. Any ideas how to prevent the button from accepting the second click? I looked at this post but it seems like the solution does not work.
Share
Disabling the button is not enough, you should also make the button unclickable with
setClickable(false).setEnabled()will only change the appearance of the button, which will continue to receive click events.