Hello my application works like this now..
Main -> SEARCH -> ActivityA -> SEARCH -> ActivityB
And when I click back from ActivityB, I want to do the following
Main <- SEARCH <- ActivityB
i.e I want to skip activities ActivityA and SEARCH. I know I have to use the FLAG, but how?
may be this be helpful
Android: Clear the back stack