You mean you do NOT want to execute the same task twice (e.g. when the user 
clicks a button two or more times in quick succession)?

If so, then disable the button until the AsyncTask has finished. 
You know when it's finished by implementing/overriding the onPostExecute 
method and from there you can enable that button again.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to