I'm trying to notify my activity when the relevant tab is selected.
Consider the follwoing situation:

**MainActivity:**

```
// Create an Intent to launch an Activity for the tab (to be reused)
intent = new Intent().setClass(this, HomeActivity.class);

// Initialize a TabSpec for each tab and add it to the TabHost
spec = tabHost.newTabSpec("home").setIndicator("Home",
                  res.getDrawable(R.drawable.ic_tab_home))
              .setContent(intent);

tabHost.addTab(spec);

// Do the same for the other tabs
intent = new Intent().setClass(this, ProceduresActivity.class);
spec = tabHost.newTabSpec("procedures").setIndicator("Procedures",
                  res.getDrawable(R.drawable.ic_tab_checklist))
              .setContent(intent);
tabHost.addTab(spec);

```

Now, the first time my second tab is selected, the onCreate method of **ProceduresActivity** is called.
What I want to be alble to do is, within **ProceduresActivity**, to be notified whenever tab 1 and tab 2 (mine) are selected.
I tryed overriding onPause and onResume within **ProceduresActivity** however those are only called when the **MainActivity** is pasued / resumed and not when I switch tabs...
So in other words I want **ProceduresActivity** to do something whenever the user selects second tab, and not only the first time.
Can someone help me please?
Thanks, Luca.