title: ClassCastException when unmarshelling parcelable array
body: <p>I'm basically trying to save an array of Bitmaps between states.</p>
  
  <p>My fragment's onSaveInstanceState:</p>
  
  <pre><code>public void onSaveInstanceState(Bundle outState) {
      super.onSaveInstanceState(outState);
      outState.putParcelableArray(SELECTED_IMAGES_ARRAY_BUNDLE, galleryAdapter.getImageBitmaps());
  }
  </code></pre>
  
  <p>And in it's onCreateView I retrieve the array as so:</p>
  
  <pre><code>savedInstanceState.setClassLoader(Bitmap.class.getClassLoader());
  Bitmap[] savedSelectedImages = (Bitmap[]) savedInstanceState.getParcelableArray(SELECTED_IMAGES_ARRAY_BUNDLE);
  </code></pre>
  
  <p>This WORKS regularly, EXCEPT when the Android OS does some memory management, kills off my process if it's running in the background, and later tries to restore it when I come back to it.</p>
  
  <p>This is the error I get:</p>
  
  <pre><code>AndroidRuntime(4985): Caused by: java.lang.ClassCastException: android.os.Parcelable[] cannot be cast to android.graphics.Bitmap[]
  </code></pre>
  
  <p>I thought it was something to do with not properly setting the classLoader, but I tried everything and can't seem to get it to work</p>