Finish All Instance of particular Activity

view full story

http://stackoverflow.com – There can be many activities in application and the last launched activity stay on top of stack and on pressing back it finish the current activity.I have a sequence of Activity and here is the flow .. if we have A,B,C(1),D,C(2)... Activity C(1) and C(2) are two different instance of Activity C launched while navigating the application .So what is requisite is to finish all the instance of activity C and the result should be when I finish C(2) I should have left with these stack A,B,D. What should I do . IMP -I want to keep the C(1) alive in stack until unless I finish the C(2) as I could (HowTos)