I am trying to create a tab view with will switch to a different content view by Id. Here is my tab activity:
tab activity
public class TabViews extends TabA
you should have TabHost and TabWidget in your xml layout, take a look at the Tab Layout example.
TabHost
TabWidget