I am performing several https posts and http downloads from two different servers using AsyncTasks. The connections are fairly quick but I'm surprised to see that they are running synchronously instead of in parallel.
To be more explicit, here is pseudo-code for what's happening when I initiate a call to AsyncTask1(): AsyncTask1 { for (i=1 to 3) { result = getDataFromServer1(); moreDataUrl = parseResult(result); secondNetConnect = new AsyncTask2(); secondNetConnect.doInBackground(moreDataUrl); } } AsyncTask2 { connects to 2nd server } What ends up running is this every time: AsyncTask1a, AsyncTask1b, AsyncTask1c, AsyncTask2a, AsyncTask2b, AsyncTask2c I would have expected at least some interleaving of the AsyncTask1 and AsyncTask2. Is there a known issue with non-simultaneous network calls in Android using AsyncTask? Thanks, Anthony -- 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