AsyncTasks are not threads.
They are chunks of work (like getting a web-document) that are executed on a 
pool of (background) threads.

Read the documentation of AsyncTask carefully. Figure out a way to have a 
pool of more than one background threads (happens 'automatically' for 
Android OS versions Donut --> Gingerbread, you need to do some extra work on 
Honeycomb). Then create a bunch of AsyncTasks at the same time on your UI 
thread (e.g. in some onXXXX() method call-back on in your onClick methods, 
etc) and call execute on them.

Then the bunch of AsyncTasks will be executed on the pool of background 
threads.
Be sure on implement onPostExecute to update your UI.

-- 
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