Where to restore instance state?
<p>I need to save some state when the user leaves my game during game play. Saving the state doesn't seem to be an issue, but I can't figure out how to restore it. The <code>onCreate</code> function isn't called when the <code>Activity</code> is resumed (only when it is first created), so I can't get my state back there. Logically, I would use <code>onRestoreInstanceState</code>, but it isn't being called.</p>

<pre><code>@Override
protected void onRestoreInstanceState(Bundle savedInstanceState) {
    super.onRestoreInstanceState(savedInstanceState);
    Log.d("RocketLaunch", "onRestoreInstanceState()");
    savedState = savedInstanceState;
}
</code></pre>

<p>I see log output from <code>onSaveInstanceState</code>, <code>onResume</code>, <code>onCreate</code>, etc, but I never see a log message from <code>onRestoreInstanceState</code> and <code>savedState</code> is always null. Why isn't <code>onRestoreInstanceState</code> being called, and is there another way to get my state back?</p>

<p>Thanks!</p>
