how the device back button lead to the previous activity?
<p>friends,</p>

<p>i have three activities</p>

<p>A,B,C</p>

<p>A is home screen.</p>

<p>Activities are launched as follow A->B->C</p>

<p>in activity B i am writing the following code. </p>

<pre><code> Intent i = new Intent(Intent.ACTION_DIAL);
        String p = "tel:" + getString(R.string.phone_number);
        i.setData(Uri.parse(p));
        startActivity(i);
</code></pre>

<p>for that it goes to the dail pad and then when pressing device back button it goes to A.my requirement is go to the B.</p>

<p>please help me .
    Thanks in advance.</p>

<pre><code> Intent i = new Intent(Intent.ACTION_DIAL);
        String p = "tel:" + getString(R.string.phone_number);
        i.setData(Uri.parse(p));
        startActivity(i);
</code></pre>
