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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -