I've got a TextView which keeps losing it's previous value between intent invocations. If I enter some text, hit the home button then relaunch the app the text is restored as expected. If I change orientation, onCreate fires and again text is restored as expected. However if I navigate elsewhere in the app via menu option then navigate BACK to the original screen via the menu, onCreate receives null for the incoming Bundle and my TextView loses state. I can see onSaveInstanceState being called before navigating away so I'm scratching my head as to what's going on.
Menu option is firing an intent like so:
intent = new Intent( Constants.INTENT_FORM_LIST );
startActivity( intent );
-Stace
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment