title: Killing old Activity in current Activity
body: <p>I have a main activity.When a button(on main activity) is pressed , a newactivity1 starts and main activity is onPause. For example again when a button in newactivity1 is pressed , a newactivity2 starts.But in this case,I want to kill mainactivity before newactivity2 start.How can I do that ?</p>