Add this to your activity tag in the AndroidManifest.xml

android:configChanges="orientation|keyboardHidden"

That will fix you up unless you have some other specifics set like different 
XML layouts for portrait and landscape. If you do, you may want to use the 
bundle or just change the view dynamically from the onConfigurationChange 
event you'll get from that attribute.

Steven
Studio LFP
http://www.studio-lfp.com


On Friday, October 7, 2011 3:45:39 PM UTC-5, King Salamon wrote:
>
> Please can anyone give me a full coding example for getting data to persist 
> after the device is rotated. All of my textView fields go back to zero when 
> the device is rotated. I understand that the activity is destroyed and then 
> recreated due to configuration change, and I think that using 
> onSavedInstanceState somehow might resolve the issue--but I need a more 
> detailed explanation with full code please. HELP!!
>

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