Check if the text view has a id. Normally, the framework would save all the
basic values such as TextViews and Edittexts after orientation change.


But it looks like you haven't specified the value of the TextView in one of
the orientations.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Tue, Feb 15, 2011 at 4:45 AM, d_a_parker <parker.davi...@gmail.com>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 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

-- 
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

Reply via email to