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
Post a Comment