I have the following code to tabhost.
tabHost.addTab(tabHost.newTabSpec("tab1")
.setIndicator("First Text")
.setContent(new Intent(this, class1.class)));
tabHost.addTab(tabHost.newTabSpec("tab2")
.setIndicator("Second Text")
.setContent(new Intent(this, class2.class)));
How can i refresh each tab? I want to do this because i have some problems showing data from database.
tanks
I think this is what you want
Just use
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)to your tab class and get your desired result