I have an app with a TabHost and three tabs. He is an example of how I am creating each tab:
intent = new Intent().setClass(this, Setup.class); //intent.getClass()
spec = tabHost.newTabSpec("setup").setIndicator("",
res.getDrawable(R.drawable.tab_setup))
.setContent(intent);
tabHost.addTab(spec);
My goal is, when you switch to a new tab, to call a method updating the information displayed on that tab.
Here is the question: How does a tab know it has been displayed?