Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean onOptionsItemSelected(MenuItem item) {
- TabHost tabHost = getTabHost(); // The activity TabHost
- // Handle item selection
- switch (item.getItemId()) {
- case R.id.settings:
- tabHost.setCurrentTab(0);
- return true;
Add Comment
Please, Sign In to add comment