When is the onPreExecute called on an AsyncTask running parallely or concurrently?
Posted
by
Debarshi Dutta
on Stack Overflow
See other posts from Stack Overflow
or by Debarshi Dutta
Published on 2012-09-03T09:20:44Z
Indexed on
2012/09/03
9:38 UTC
Read the original article
Hit count: 270
android
|android-asynctask
I am using Android HoneyComb.I need to execute some tasks parallely and I am using AsyncTask's public final AsyncTask executeOnExecutor (Executor exec, Params... params) method.In each separate thread I am computing some values and I need to store then in an ArrayList.I must then sort all the values in the arrayList and then display it in the UI.Now my question is if one of the thread gets completed earlier than the other then will it immediately call the onPostExecute method or onPostExecute method will be called after all the background threads have been completed?MY program implementation depends on what occurs here.
© Stack Overflow or respective owner