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

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

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -