Back Stack, Splash and TabActivity
<p>I've searched SO and found several answers to the question in general, and have tried them all and am not having success.  I really don't have my head around how the back stack works, Intent flags or the finish method.  Here's my setup:</p>

<p>On application start-up, there's a splash screen where a couple AsyncTasks run in the background and check a couple webservers for updated content.  ProgressDialogs report status.  When complete (via the last onPostExecute), I launch a new Activity ("Home").  This seems to reflect some of the other posts, but I think my kludge is due to Home being a TabActivity, with 4 tabs, that initially calls setCurrentTab on tab 0.</p>

<p>So, using the suggestions previously posted:</p>

<ol>
<li>android:noHistory="true" on the Splash activity</li>
<li>calling Splash.this.finish() after it launches the Home TabActivity</li>
<li>setting the Home TabActivity intent flag of Intent.FLAG_ACTIVITY_CLEAR_TOP</li>
<li>setting the Home TabActivity intent flag of Intent.FLAG_ACTIVITY_NO_HISTORY</li>
</ol>

<p>The users sees the splash, the TabActivity launches, <em>the user clicks to another tab</em>, then hits back - the application closes (not force close - just closes back to the devices home screen).</p>

<p>If I don't use any of those, when the user hits back after changing to another tab, they go back to the Splash screen and are stuck (I could add a button or something to take them to the Home TabActivity but that's not optimal).</p>

<p>The desired result is that the user sees the Splash, gets taken to the Home TabActivity, clicks another tab, then hits back, he should be taken back to the initially set tab (tab 0).</p>

<p>Any insight is appreciated.</p>

<p>TYIA</p>
