title: EditText not automatically saved on screen orientation change
body: <p>I read that Android automatically saves the content of <code>EditText</code> objects when an application is about to be stopped or killed. However, in my app the content of an <code>EditText</code> is lost when screen orientation changes.</p>
  
  <p>Is it normal behaviour? Do I then have to manually save/restore its content with <code>onSaveInstanceState</code>/<code>onRestoreInstanceState</code>? Or is there an easier method to tell Android to save it end restore it?</p>
  
  <p><strong>Edit</strong>:</p>
  
  <p>I create the <code>EditText</code> object programmatically, not in XML. This turns out to be related to the problem (see accepted answer below).</p>