How save list of objects onStop/onPause of activity in android
<p>Lately writing some app I've been stopped by one problem.</p>

<p>In this app I have two activities: A and B. In activity A I am downloading list of objects from web each time when GPS coordinates change. To this activity there is connected bound service with GPS and Internet connection call. Those objects are then put into list created from their names and after pressing on any of this I can open the B activity passing this object and in activity B get some more info from this object.</p>

<p>Activity B hasn't got any bound service, it's only taking what is inside object and display it.</p>

<p>Because bound service in activity A is unbound in onStop then when I come back to it using a back arrow it takes a while to download everything again. What is more interesting, the list is still filled, but those are only names, the actual list of objects doesn't exist and pressing just after comeback on any of names will cause OutOfBoundException.</p>

<p>So, my question is, what would you advice to do to save this objects when I am living activity A and retrieve them when come back, before download of the new (or this same) list.</p>

<p>I've tried:</p>

<ul>
<li><code>onRestoreInstanceState()</code> with <code>onSaveInstanceState()</code>, because there you can save parcelable list, but the activity A isn't destroyed so fast, so there is no call for <code>onRestoreInstanceState()</code>;</li>
<li><code>Shared preferences</code>, but it was bad choice, because you can't save list there;</li>
<li><code>ContentValues</code> and <code>content resolvers</code> but also, bad choice, because you can't save list.</li>
</ul>

<p>Do you have any more ideas, how it can be done?</p>

<p>Oh, I've forget to mention, <strong>I've taken assumption that there can be mximum 100 objects in list, and each object have 5 fields.</strong></p>
