I use tabhost as my main activity. And show the first list in initial. And onclick to the second list. At this time, the screen orientation change, the screen is change to initial list. How to resolve it? I already try below: 1. add android:configChanges="orientation|keyboardHidden" android:screenOrientation="portrait" in Manifest 2. add onConfigurationChanged in each activity
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
}
Is there any other solution?
Sorry~ I means the content in tabcontent(FrameLayout). And the tabs(TabWidget) didn't reload when the screen change.
On create, call AActivity to show list1. And in AActivity listonclick, I make it call BActivity to show list2. But when screen change, the tabcontent call AActivity and show list1.