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

Popular posts from this blog

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -

c# - Send Image in Json : 400 Bad request -