title: Same Activity called twice... Issue with Multiple AsyncTasks?
body: <p>I have three simultaneous instances of an AsyncTask for download three files. When two particular ones finish, at the end of <code>onPostExecute()</code> I check a flag set by each, and if both are true, I call <code>startActivity()</code> for the next Activity.</p>
  
  <p>I am currently seeing the activity called twice, or something that resembles this type of behavior. Since the screen does that 'swipe left' kind of transition to the next activity, it sometimes does it twice (and when I hit back, it goes back to the same activity). It's obvious two versions of the activity that <em>SHOULD</em> only get called once are being put on the Activity stack.</p>
  
  <p>Could this be from both onPostExecute()s executing simultaneously and both checking the flags each other set at the exact same time? This seems extremely unlikely since two processes would have to be running line-by-line in parallel...</p>
  
  <p>*****EDIT*** A lot removed from this question since I was way off in what I thought was wrong. Nonetheless I found the answer here quite useful, so I have edited the question to reflect the useful parts.</p>