Wednesday, February 01, 2012,
Modified: Sunday, February 05, 2012
Getting Android to save/restore Views for you
"Not all views with an ID save their state. Android widgets, with an ID, whose state can be changed by the user, appear to save their state on a soft kill. So EditText saves its state, but TextView does not save its state on a soft kill."
Note that setting an ID and setting this flag only works for layouts created in XML.
If you build one or parts of one dynamically in Java, even if you give an ID call
setFreezesText() on your text views and buttons,
the framework will not do the work for you.
You have to manually save and restore your gui state as in the section below.