When is the onPreExecute called on an AsyncTask running parallely or concurrently?
- by Debarshi Dutta
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.