title: Can I chain async task sequentially (starting one after the previous asynctask completes)
body: <p>Every time I do a <code>httpRequest</code>, the screen will appear to be locked up for a few seconds while the code is executing. Hence I used <code>AsyncTask</code> to do all my <code>httpRequest</code> stuff in a separate thread while putting up a <code>ProgressDialog</code> so the user knows something is happening. </p>
  
  <p>I recently encountered the following situation: the input of one of my <code>httpRequest</code> is dependent on the result from a previous <code>httpRequest</code> (+parse) action. I can't just put the two <code>AsyncTask</code>s sequentially cause Android will put them in two threads and start the second one without the first one being finished. And without an appropriate input (the result of the first <code>httpRequest</code>), my second <code>httpRequest</code> will crash the app. </p>
  
  <p>Is there way I can put-in a <code>wait()</code> to force the second <code>AsyncTask</code> not to start until the first one finishes?</p>