@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); // changeContentView(); // TODO wirft fehler?! TabHost tabHost = (TabHost) findViewById(R.id.main_tabhost); TabHost tabHost = (TabHost) findViewById(android.R.id.tabhost); boolean tachoIsCurrent = (tabHost.getCurrentTab() == 0); if (tachoIsCurrent) { tabHost.setCurrentTab(1); } if (newConfig.orientation == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE || newConfig.orientation == ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE || newConfig.orientation == ActivityInfo.SCREEN_ORIENTATION_USER) { speedoTab.setContent(speedoLandscape); } else { speedoTab.setContent(speedoPortrait); } if (tachoIsCurrent) { tabHost.setCurrentTab(0); // TODO change current tab-workaround // (damit Intent nicht "einfriert") } }
@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); if (null != mBrowser) { mBrowser.onConfigurationChanged(newConfig); } }