Hi, I think there's a bug involving using Tabs and Landscape/Portrait switching.
Using an app with TabHost, tab_1 is shown, onCreate and then onResume are called. When switching to tab_2: onPause(1), onCreate(2), onResume(2) are called. When switching to landscape mode: onPause(2), onDestroy(2), onDestroy (1) are called to close the app, and then onCreate(1), onCreate(2), onPause(2) are called. I think this is the bug, android had created tab_1 but should have then called onResume(1), onPause(1). Now, when switching back to portrait mode, onPause(2), onDestroy(1), onDestroy(2) are called causing my app a null pointer exception because onResume(1) wasn't called before calling onDestroy(1). Is this really a bug, or am I doing something wrong? PS, this might be related to: http://groups.google.com/group/android-developers/browse_thread/thread/eca93f89869176d2/2fc586f400f16062 Regards, Mor. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

