EditText is losing users' input when rotating android phone
<p><strong>PROBLEM</strong></p>

<ul>
<li>When a user types into the editText
(landscape mode, or portrait) and
rotates the phone the text is lost.</li>
</ul>

<p><strong>QUESTION</strong></p>

<ul>
<li>How can I prevent the loss of the
text ?</li>
</ul>

<p><strong>underlying code:</strong></p>

<ul>
<li>onCreate()  -> 
setContentView(myLayout)  ->  get
references to UI widgets with
findViewById()</li>
<li>onConfigurationChanged()  ->  setContentView(myLayout)  ->  get references to UI widgets with findViewById()</li>
</ul>

<p>my guess is that the setContentView() within onConfigurationChanged() causes the data loss.
What I believe I need to do is grab the data from the EditText before this happens. But how ?</p>
