java - Remove limited activity from stack not all -


i have 5 activity example

a, b, c, d, e

i going -> b -> c -> d -> e

now when press button e

i want go directly b , b should not create new actiivity

i know

    intent intent  = new intent(this, activityb.class);     intent.setflags(intent.flag_activity_clear_top);             startactivity(intent); 

by can don't want create activity b doing startactivity

in button's onclick can have following:

intent intent  = new intent(this, activityb.class); intent.setflags(intent.flag_activity_clear_top);         startactivity(intent); 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -