Android: Saving ListView data when app closes
<p>I have an Android app which has a list view which is updated during the lifetime of the app. </p>

<p>I have a 'Quit' menu option which saves the list data in a thread and then finishes the app by calling finish();</p>

<p>How should I save the data if the app gets killed  by the system?  In particular, when should I save the data, in onStop, onDestroy or elsewhere?</p>

<p>NiMuSi</p>
