title: Activity stack seems to be cleared when app is in the background for a while
body: <p>I have an application with the following flow:</p>
  
  <pre><code>Loading activity -&gt; activity 1 -&gt; activity 2
  </code></pre>
  
  <p>where the loading activity is closed using <code>finish()</code> after launching activity 1.</p>
  
  <p>When clicking the home button and then relaunching it after a while (seems to be 30 minutes or more), I was expecting one of the following behaviors:</p>
  
  <ol>
  <li>The activity is still alive - continue from activity 2.</li>
  <li>The activity was killed - restart from the loading activity.</li>
  </ol>
  
  <p>However, what happens is that the app starts from <code>activity 1</code>. I'm assuming this means that the activity task was cleared, because if the loading activity is not being closed, the app starts there (but I do need to close it).</p>
  
  <p>Is that assumption correct or is there a different explanation behind this? What can be done in order to have the app relaunch from the loading activity in this scenario?</p>