super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.tabs);
TabHost tabHost = getTabHost();
tabHost.setOnTabChangedListener(this);
Bundle extras = getIntent().getExtras();
Resources resources = getResources();
getIconListenerSet(getContentResolver());
Intent bookmarksIntent = new Intent(this, BrowserBookmarksPage.class);
bookmarksIntent.putExtras(extras);
tabHost.addTab(tabHost.newTabSpec(BOOKMARKS_TAB)
.setIndicator(resources.getString(R.string.tab_bookmarks),
resources.getDrawable(R.drawable.browser_bookmark_tab))
.setContent(bookmarksIntent));
Intent visitedIntent = new Intent(this, MostVisitedActivity.class);
visitedIntent.putExtras(extras);
tabHost.addTab(tabHost.newTabSpec(VISITED_TAB)
.setIndicator(resources.getString(R.string.tab_most_visited),
resources.getDrawable(R.drawable.browser_visited_tab))
.setContent(visitedIntent));
Intent historyIntent = new Intent(this, BrowserHistoryPage.class);
historyIntent.putExtras(extras);
tabHost.addTab(tabHost.newTabSpec(HISTORY_TAB)
.setIndicator(resources.getString(R.string.tab_history),
resources.getDrawable(R.drawable.
browser_history_tab)).setContent(historyIntent));
String defaultTab = extras.getString(STARTING_TAB);
if (defaultTab != null) {
tabHost.setCurrentTab(2);
}