android - How to re-create activity each time the tab is visited -
i have tabactivity
, , want re-create activity tab visited(calling content of oncreate()
each visit) . how ?
you use ....
this.finish(); // instance of tabactivity
.... close current 1 , create new intent using
intent intent = new intent(this, tabactivity.class); intent.setflags(intent.flag_activity_new_task) startactivity(intent);
edit: intent.flag_activity_clear_top
seems in fact work will not work, because though intended bring existing activity is brought front (without recreation).
check out this more.
cheers!
Comments
Post a Comment