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