title: Persisting list items in ListAdapter on configurationChanges with setRetainInstance
body: <p>I have an <code>ArrayListAdapter</code>. On configuration changes the list is not recreated. I would like to persist the list. I have used <code>onSaveInstance()</code> method to do this but I know it is not the best place where to store this kind of data.</p>
  
  <p>A more appropriate method would be <code>onRetainNonConfigurationInstance()</code> but it has been deprecated in favor of <code>setRetainInstance()</code> in a Fragment. I don't understand how the setRetainInstance in Fragment could replace onRetainNonConfigurationInstance for the above situation.</p>
  
  <p>Thanks</p>