I currently have a Tab Screen in my Android application, it hosts 4 other activities from its Tabs.
I set up each tab as follows:
intent = new Intent().setClass(this, LiveActivity.class);
spec = tabHost.newTabSpec("live_tab").setIndicator(getString(R.string.tab_contacts),
res.getDrawable(R.drawable.ic_tab_contacts)).setContent(intent);
tabHost.addTab(spec);
All works fine, however when I change the orientation on the device I take care of the orientation change separately within each individual activity, each activity also has a different landscape layout in XML.
When I change the orientation on the device the change works OK for the activity I'm currently on but if I change the orientation back (so its portrait to landscape to portrait) then my activities seem to reload and get reset to their initial state rather than honoring my onRetainNonConfigurationInstance() method.
Has anyone come across this before and perhaps come across a solution?