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"
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
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
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
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
5 matches
Mail list logo