Tuesday, July 16, 2013

[android-developers] Re: How to run Async tasks parallely..

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

On Tuesday, July 16, 2013 4:08:09 PM UTC+5:30, Piren wrote:
did you read the documentation?

Order of execution


When first introduced, AsyncTasks were executed serially on a single background thread. Starting with DONUT, this was changed to a pool of threads allowing multiple tasks to operate in parallel. Starting with 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[]) with 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
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 android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate