I have a button that when clicked, saves a canvas to an image file and then calls another activity. The problem I am having is that through testing, I’ve noticed the user can click the button twice in a row before the activity is called, resulting in two files being written.
I also noticed the same problem with spinners in another activity. I click them twice in a row in succession and up pops up 2 list views containing all my spinner items.
I’ve been trying to Google this without much luck. Is there a simple fix to this?
Thanks.
Well as it turns out, I had to implement both suggestions to get this to work. +1 to each of you.
I used an indeterminate progress dialog, and a boolean value like so: