title: How to save state during orientation change in Android if the state is made of my classes?
body: <p>I was looking at the way Android handles orientation change for my application (I discovered that it restarts the mainactivity on orientation change. I've seen that you can override the method </p>
  
  <pre><code>protected void onSaveInstanceState(Bundle outState)
  </code></pre>
  
  <p>To save stuff, then have the in onStart. The problem is that I've my view with custom objects and a listview using a custom adapter. Everything is in a ArrayList of these objects, but I've noticed that you can't put arbitrary objects in the bundle! So how do I save the state? </p>