On Mon, Apr 5, 2010 at 6:50 AM, Gaurav Vaish <gvaish.i...@gmail.com> wrote: > Problem: > When the orientation is changed, the Application is notified about > onConfigurationChange but: > > a) The "current" activity is Destroyed and recreated -- which is fine > to some extent > b) The new instance which is created is automatically => onCreate, > onPause, onStop, onDestroy.... now that's catastrophic. > > Any guesses as to why the new activity is "killed"? :(
Are you being caught out by this bug? http://code.google.com/p/android/issues/detail?id=2423 If so, then the problem appears to be a rogue "hide keyboard" event forcing the activity to re-create after an orientation change. Apparently this only affects the emulator, and not physical devices (I have no idea if this is true). You might be able to prove the theory by adding this to your activity declaration in the manifest: android:configChanges="keyboardHidden" -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.