Reputation: 5624
I have TabActivity and also three others activities in tabs. In Manifest file I have line:
android:configChanges="orientation|keyboardHidden|keyboard"
in <activity>
tag of the TabActivity and also three others activities. I have also overrided in all my activities onConfigurationChanged(Configuration newConfig)
method. And it works properly in almost all cases. After that the phone screen has blanked in only landscape mode and I have clicked the home button and next I want to change the orientation the method onConfigurationChanged has not been called.
I have used Toast class and I know that the only method onConfigurationChanged of TabActivity has been called at this moment, but not this method of current activity in tab. However when I change the orientatione once more finnally the onConfigurationChanged method of current activity in active tab has been called. How can I fix this bug? My code works properly, but not in this case.
I have noticed that similar problem appears when I switch tabs in my TabActivity and change the orientation. But now I can't explain when it works and when it doesn't work. I am in stuck. I know that allways the onConfigurationChanged method of TabActivity is calling. But this method of activities in tabs - not allways.
Upvotes: 0
Views: 826
Reputation: 5624
To me this is a not fixed bug in Android TabActivity. Now, using Tabs is deprecated in Android Android has introduced Fragments which have replaced Tabs. So apparently the problem with tabs has gone. The problem has beem swept under the rug.
Upvotes: 1