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

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -