again, did you ready the documentation? below honeycomb it is parallel, unless you're aiming for Donut, which i have no idea why.
On Tuesday, July 16, 2013 4:06:50 PM UTC+3, Ashish Sharma wrote: > > Hi, > > what if want to support it for below > HONEYCOMB<http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#HONEYCOMB> > version.. > > On Tuesday, July 16, 2013 4:08:09 PM UTC+5:30, Piren wrote: >> >> did you read the documentation? >> http://developer.android.com/reference/android/os/AsyncTask.html >> >> Order of execution >>> ------------------------------ >>> >>> When first introduced, AsyncTasks were executed serially on a single >>> background thread. Starting with >>> DONUT<http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#DONUT>, >>> >>> this was changed to a pool of threads allowing multiple tasks to operate in >>> parallel. Starting with >>> HONEYCOMB<http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#HONEYCOMB>, >>> >>> tasks are executed on a single thread to avoid common application errors >>> caused by parallel execution. >>> >>> If you truly want parallel execution, you can invoke >>> executeOnExecutor(java.util.concurrent.Executor, >>> Object[])<http://developer.android.com/reference/android/os/AsyncTask.html#executeOnExecutor(java.util.concurrent.Executor,+Params...)> >>> with >>> THREAD_POOL_EXECUTOR<http://developer.android.com/reference/android/os/AsyncTask.html#THREAD_POOL_EXECUTOR> >>> . >>> >> >> On Tuesday, July 16, 2013 12:38:48 PM UTC+3, Ashish Sharma wrote: >>> >>> Hi, >>> >>> I have checked that two Async task nerver run parallely . >>> suppose i started two two async task parallely then second task run >>> only when first one finish.. >>> >>> is there any way to to run async tasks parallely? >>> any other alternate way? >>> >> -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

