I have noticed that when using
actionBar.setSelectedNavigationItem(x)
in the onCreate() method of my Activity, the tab item at position 0
Use the other addTab calls to override this behaviour. You'll need to add the tab you want to be selected first (in your case, the tab at position 2). Relevant Javadoc
addTab
actionBar.addTab(tab2); actionBar.addTab(tab0, 0, false); actionBar.addTab(tab1, 1, false);