I have been attempting to implement the \'advanced\' tabwidget example from google. But, when it tries to call tabHost.addTab(spec); I get a stack trace from t
tabHost.addTab(spec);
The example, as corrected by Ted, also works if all three activities do not include the line:
android:theme="@android:style/Theme.NoTitleBar"
This is useful if you want a title bar in addition to the tab labels.