android - Remove activites from the stack -
i have activities on stack a->b->c->d , want come activity b activity d removing activities between b , d (a->b).
i have tried this:
intent intent = new intent(this, b); intent.setflags(intent.flag_activity_new_task | intent.flag_activity_clear_task); startactivity(intent);
but doing delete activity stack.
do know how handle that?
thank you
you can use
intent intent = new intent(this, b); startactivity(intent); finish()
on activities want remove stack
Comments
Post a Comment