I have stack of activities launched after one another. but in one of the activity I need to launch that particular activity with flag FLAG_ACTIVITY_CLEAR_TOP
FLAG_ACTIVITY_CLEAR_TOP
One solution is to call Activity [B] with flag FLAG_ACTIVITY_CLEAR_TOP, this will destroy all activities but [B]. After that, call Activity [D].
[B]
[D]