how to kill the entire application  except one activity in android
<p>i have a design of activities like this</p>

<p>I have one main activity and 5 subactivities (from 1 to 5).</p>

<p>From main activity i can call any of these subactivities and when i call the subactivity i am not finishing the main activity because i may need to comeback here at a later. <strong>So the main activity is running in the background</strong></p>

<p>But when i enter the subactivity,i am making call.i am dispatching call activity to perform call operation. But <strong>i want to kill all the activities except that "call activity</strong>". the main activity is still in the background.how to kill it and all other activities which are active.</p>
