Can I create an activity for a particular task without that task coming to the foreground?
<p>Here's my use case:<br>
The app starts at a login screen.  You enter your credentials and hit the "Login" button.  Then a progress dialog appears and you wait for some stuff to download.  Once the stuff has downloaded, you are taken to a new activity.  Exactly which activity you are taken to depends on the server response.</p>

<p>Here's my problem:<br>
If you go HOME during this login/download process, at some point in the near future your download will complete and will invoke <code>startActivity()</code>.  <strong>So then the new activity will be pushed to the foreground, rudely interrupting the user.</strong>  I can't start the activity before I start the download, because, as I mentioned earlier, the activity I start depends on the result of the download.</p>

<p>I would obviously not like to interrupt the user like this.  One way to solve this is to refrain from calling  <code>startActivity()</code> until the user returns to the app.  I can do this by keeping track of the LoginActivity's <code>onStop()</code> and <code>onRestart()</code>.  <strong>But I'm wondering, is there any way to create the activity while it is in the background?</strong>  That way the user returns to the app and he is ready to go... otherwise he would have to wait for the new activity to be created (which could take some time because the <em>new</em> activity <em>also</em> has to download and display some data).</p>

<p><strong>Update:</strong>
Guess what?  I LIED!  I could have sworn that starting this activity was causing it to come to the foreground, but I went back to test it again and the problem has magically disappeared.  I tested in both 1.6 and 2.0.1 and both OSes were smart enough not to bring a backgrounded task to the front.</p>
