Note that there are some explanatory texts on larger screens.

plurals
  1. POApp always starts fresh from root activity instead of resuming background state (Known Bug)
    text
    copied!<p>I am facing exactly the problem mentioned in these links:</p> <p><a href="http://code.google.com/p/android/issues/detail?id=2373" rel="noreferrer">http://code.google.com/p/android/issues/detail?id=2373</a></p> <p><a href="http://groups.google.com/group/android-developers/browse_thread/thread/77aedf6c7daea2ae/da073056831fd8f3?#da073056831fd8f3" rel="noreferrer">http://groups.google.com/group/android-developers/browse_thread/thread/77aedf6c7daea2ae/da073056831fd8f3?#da073056831fd8f3</a></p> <p><a href="http://groups.google.com/group/android-developers/browse_thread/thread/2d88391190be3303?tvc=2" rel="noreferrer">http://groups.google.com/group/android-developers/browse_thread/thread/2d88391190be3303?tvc=2</a></p> <p>I have a simple root activity with the LAUNCHER and MAIN intents and <em>nothing else</em>. I start another activity with has <em>no flags or anything extra</em> in the manifest whatsoever.</p> <p>I launch the app (root activity) and from there start the 2nd activity. On pressing the Home button the task goes to the background. On launching the app again (from Launcher or from holding the Home button for recent apps) it starts a new instance of the root activity on top of the existing stack.</p> <p>If I press the back button, the new "root" activity closes and the old 2nd activity is visible, which means its launching the root activity in the same task instead of bring the task to the foreground.</p> <p>To counter this I made the root activity's launch Mode <em>singleTask</em>. Now when I press home and launch the app again, it clears the activities above the old root task and brings the old root task to the foreground instead of just bringing the entire old task with the 2nd activity on top to the front. Note that the old root task still retains its application state, which means it wasn't a new instance, but the the higher activities had been killed.</p> <p>It even occurs on other applications downloaded from the market. The manual install method has no effect for me, it still launches the same way.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload