I click a Button once, but it seems to be that onClick() gets fired multiple times. I tried with mybutton.setClickable(false); in onClick(), but it doesn’t seem to work. Any solutions?
I click a Button once, but it seems to be that onClick() gets fired
Share
Prevent a widget from getting clicked multiple times in a short span
..
and set mAllowSave to true when you need button active orcan use send.postDelay to activate that again…
so put these line in onClick as well so your button will be active after 1/2 second than previous click