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

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -