title: Multiple AsyncTasks with sequential execution
body: <p>I know that Similar questions have been asked before but the solution to those questions will not work for me. The situation is that I have an Array of objects that are each getting sent to uploaded to the server via an asynctask. I need to send each one separately but each object in the list uses the same asynctask so calling task.execute in the onPostExecute() is not an option since that would cause it to infinitely call itself. I have tried something like so </p>
  
  <pre><code>for(each item in list){
      task.execute();
      while(task.getStatus() != android.os.AsyncTask.Status.FINISHED){
              //spin here and wait
      }
  }
  </code></pre>
  
  <p>But when doing this it just spins for ever and never leaves the while loop.
  Any suggestions are greatly appreciated</p>