call onrestart/onresume when click on back button
<p>Evening,</p>

<p>I'm facing a small problem which I can't get fixed. I'm having one 'base' activity (name: <code>TestActivity</code>, extending <code>ActivityGroup</code>) with a history array list in it. Every time when I'm going to a new activity I'm using the following bit to load a new view.</p>

<pre><code>Intent intent = new Intent(Start.this, CitySelect.class);
View view = TestActivity.group.getLocalActivityManager().startActivity("cityselect", intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)).getDecorView();
TestActivity.group.replaceView(view); 
</code></pre>

<p>As you can see I'm calling the <code>replaceView</code> method to 'replace' the view. See below for the code:</p>

<pre><code>public void replaceView(View v)
{
    history.add(v);
    setContentView(v);
}
</code></pre>

<p>In every activity I'm overriding the <code>onBackPressed</code>:</p>

<pre><code>@Override
public void onBackPressed()
{
    TestActivity.group.back();
}
</code></pre>

<p>See below for the <code>back</code> method:</p>

<pre><code>public void back()
{
    if (history.size() &gt; 0)
    {
        history.remove(history.size() - 1);

        if (history.size() &gt; 0)
        {
            View v = history.get(history.size() - 1);
            setContentView(v);
        }

        else
        {
            finish();
        }
    }

    else
    {
        finish();
    }
} 
</code></pre>

<p>Now comes the problem: when I'm using the back button on my phone and the previous activity comes to the foreground nothing will be called in the view (activity). When I follow the Activity life cyle I thought that the <code>onResume</code> will be called but that's not the case. Nothing happens.</p>

<p>So the question is: How can I call the <code>onResume</code> method when I'm pressing the back button?</p>
