title: Changing orientation clears the TimePicker
body: <p>I just started learning Android application development and I noticed the following issue while trying different activity elements. I have the following code in my Main activity</p>
  
  <pre><code>&lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/mainLayout"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;TableRow
          android:id="@+id/row1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" &gt;
  
          &lt;TimePicker
              android:id="@+id/timePicker1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" /&gt;
  
      &lt;/TableRow&gt;
  
  &lt;/TableLayout&gt;
  </code></pre>
  
  <p>Its an activity with just a TimePicker. My issue is that whenever I change the orientation of my mobile device the hour selection of the TimePicker goes blank and the following error is generated in the LogCat.</p>
  
  <pre><code>Saved cursor position 2/2 out of range for (restored) text
  </code></pre>