you have to check for onSaveInstanceState event handler and related thing - restoring application state from bundle. Google for it - should be easy to find. In general - it will allow you to save needed data and then assign it when activity is re-created after orientation change.
On Tue, Feb 15, 2011 at 1:15 AM, d_a_parker <[email protected]>wrote: > Hello, > > For some reason, I have one Activity in my app which does not behave > like the rest and seems to reset when the screen is rotated. I have > this specified for all Activities in the manifest: > > android:configChanges="orientation" > > None of the other Activities in my app have any problems when the > device is rotated, they just change orientation and do not refresh. > The Activity I'm having problems with has three sections contained in > a LineraLayout: a TextView for the title, a TextView which acts as a > console to display output from commands, and an EditText which is the > command input box. Each time a command is run, its output is appended > to the contents of the "console" TextView. However, when the device > is rotated, the Activity resets and that TextView gets cleared. > > Does anyone know what the problem might be? Any way to make sure this > Activity does not reset on rotation? I read the "Handling Runtime > Changes" section of the SDK documentation, but neither > onConfigurationChange() nor onRetainNonConfigurationInstance() seemed > to solve the problem. Any help would be appreciated. > > Thanks! > Dave > > -- > 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 -- Bambr in da house -- 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

