configuration changed (orientation change) and destroying Activities - is this the way its supposed to work?
<p>Ok, so I read up on how Android handles "configuration changes" - by destroying the active Activity.</p>

<p><b>The first question</b> I really want to know from Android Team - why? I would appreciate an explanation on how the reasoning went, cause I dont get it =)</p>

<p>In any case, the fact that it acts in that way puts us all, as I see it, in a world of pain. </p>

<p>Lets assume you have a Activity which presents a number of EditText:s, checkboxes etc. If a User starts to fill that form with text/data and then changes orientation (or get a Phonecall), then all input the User made is gone. I havent found any way to preserve state. That forces us to make extremely painful coding to not loose all data. </p>

<p>As I see it, you need another "non-Activity" class (or <i>"value-holding" class</i> perhaps) that has one field for each "form element" (EditText, checkbox etc). </p>

<p>For every single "form element" that exists, you then need to attach an Event like "onChanged" (or onTextChanged or something like that) that updates the corresponding field in the <i>"value-holding" class</i> to make sure that for every single character you type (in a EditText for example) is saved at once.</p>

<p>Perhaps you can use some listener (like "onDestroy" or something) and then fill the value-holding class with data...</p>

<p>I have also found <a href="http://stackoverflow.com/questions/151777/how-do-i-save-an-android-applications-state">this piece of info</a> where they talk about using Bundle, <i> onSaveInstanceState</i> and <i> onRestoreInstanceState</i>, but that also mean that the programmer has to manually save and then later put back the values in the correct place? This approach is a bit less messier than my suggestions above, but still not very nice...</p>

<p>Now, can someone please tell me that I am totally wrong and that this is not how it works and that I totally missed some vital information? ;-)</p>

<p>Regards</p>
