Re: [android-developers] Screen rotation clears TextView

2011-02-16 Thread TreKing
On Tue, Feb 15, 2011 at 12:40 PM, David Parker wrote: > 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"

Re: [android-developers] Screen rotation clears TextView

2011-02-15 Thread Kumar Bibek
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.kbe

Re: [android-developers] Screen rotation clears TextView

2011-02-15 Thread Bambr
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, 2

[android-developers] Screen rotation clears TextView

2011-02-15 Thread d_a_parker
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 th

[android-developers] Screen rotation clears TextView

2011-02-15 Thread David Parker
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 th