title: Android orientation change calls onCreate
body: <p>I've made a search screen that has one tab for keywords, filters, and a search button, and three optional tabs for the different types of results (each containing a <code>ListView</code> with an <code>ArrayAdapter</code>).  When starting the activity, the developer can optionally pass in the results as an extra <code>Parcelable[]</code> if the search has already been performed.  In the <code>onCreate()</code> method I'm creating each of the three tabs for the <code>Parcelable[]</code> passed through.</p>
  
  <p>When I call a search from the button on the filter tab, I clear the tabs and recreate them with the new results, which works perfectly.  The problem is that when you rotate the device, it appears that Android's automatic orientation switching support recreates the entire activity, calling <code>onCreate()</code>.  This means that my search results are reset to the <code>Parcelable[]</code> passed through when starting the activity.</p>
  
  <p>The only solution I've had so far is to call <code>finish()</code> then <code>startActivity()</code> to essentially restart the activity with the new results.  I'm sure there must be a much simpler solution and that I've done something extremely noobish.</p>
  
  <p>Is there a better way to do this?</p>