What is the most efficient way to save game status in Android?
<p>I have a game app that save game status in the onPause() function of the game board activity.</p>

<p>That seems very wasteful, because the user might be briefly switching to another app and return to play later.  But if they never return, my app could be garbage collected and the status gets lost, so I save it just in case.  </p>

<p>I think status gets saved many times for every time it gets read.  Is there a better way to lazily save the status when I know they are leaving the app?  </p>

<p>Does anybody know of a guaranteed callback that I could use?  e.g. if I move the save status code to onDestroy(), it might never get called.   </p>

<p>Is there a way to leverage onSaveInstanceState() to help?</p>

<p>Thanks</p>
