Android: Remove a series of Activites on clicking back
问题 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? 回答1: may be this be helpful Android: Clear the back stack 回答2: You coud just do: In SearchActivity Intent i = new Intent(this, ActivityA.class); i.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY); startActivity(i); In