If i have stack histories of activities like A>B>C>D>E than i need to open C activity and clear all top activities. Than when back pressed I need result in this format C>B>A?
This is not duplicate question. In this activity we have multiple activity not only 2.