Ne0 wrote: > My activity displays a text view where the text is constantly changed > with updates from a LocationListener. When returning to the activity > after navigating away, the text view comes back with the > savedInstanceState state but any changes to the text in the text view > dont. How do i get the saved instance to save my text view with its > current text when navigating away?
You do it yourself. Override onSaveInstanceState(), put the TextView's contents into the Bundle under your own key. Then, in onCreate() or onRestoreInstanceState(), pull the value out of the Bundle and put it back in the TextView. AFAIK, Android only bothers saving state for things that are expected to change. That is why it saves the text in an EditText (which a user is likely to change) and perhaps does not save the state for a TextView (which normally stays static). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

