title: How to clear specific activity from the stack history?
body: <p>Suppose I have an application containing activities named A,B,C,D. Now, consider A has been launched as the root activity and B has been launched from A and C has been launched from B and D has been launched from C. Now I have a button named "Remove" in the activity D. If suppose, I press the button "Remove" in the activity D, then the activity B and activity C should be removed from the history stack. On Pressing back key from the activity D should display activiy A instead of C. I don't know how to implement this. Can anyone help me to resolve this problem?</p>