How to save app on back button press
<p>How can I store the state of my app when back button is pressed.</p>

<p>When back button is pressed only <code>onPause()</code> is called but not <code>onSaveInstanceState</code> where we can store our data in outState bundle.</p>

<p>One answer may be <code>sharedPreference</code> but my problem is it will store only int and not <code>intArray</code> as bundles does.</p>

<p>Is there any way to explicitly call <code>onSaveInstanceState</code>?</p>
