Android: State management seems wrong
<p>Lets say we have activities A, B. A starts B and passes an Intent Extra "id". Now the weird-ness only seems to happen with certain actions.</p>

<p>Start App</p>

<p>A calls B passes Extra: id 1</p>

<p>While in B press the home button.</p>

<p>Find the app icon and click on it.</p>

<p>A calls B but this time I pass in Extra: id 2</p>

<p>Now in B when it prints out the id it is 1 even though I specified id 2.</p>

<p>From further analysis it doesn't seem to be getting the new Intent, it seems to be using the old Intent, and the second time in doesn't seem to be calling the onCreate it goes straight to onRestart. So my question is, is there a way to onRestart have it get the correct Intent Extras? It seems to be grabbing the old saved extras.</p>

<p>I am sorry if this is hard to follow, I will see if I can get a small sample app put together that demonstrates this.</p>

<p><strong>EDIT</strong> It appears this scenerio is not normal, and it is caused because in my AndroidManifest.xml I had my activities with the property android:launchMode="singleInstance" once I removed this it began acting as described by Rich.</p>
