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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -