In my Android application, I started a thread in the onclick of button. The thread is working fine.
I want to prevent the user from clicking the same button again before the first response is received. It causes the start of another thread. Please help me with thread and event handling in android.
you can also make sure that only “one” instance of the thread can be opened. For this you have to do the following.
Then you can acces the tread-instance with
And so it is also ensured that only one instance of this thread exists.