android - destroying all other activities -


i trying use flag_activity_clear_top found out it's little different situation.

in project, there 3 activities, a, b, c.

it moves -> b -> c , when activity c created, activity , b destroyed. should use flag_activity_clear_top or other apis?

thanks.

if want finish a , b activities when starting c activity, intent used starting c activity add following flags:

cactivityintent.addflags(intent.flag_activity_clear_task); cactivityintent.addflags(intent.flag_activity_new_task); 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -