how to pause activity on home button in android like iPhone isBackground flag does
<p>I am working on a game and i am facing a problem where i need to save my application state.</p>

<p>I looked for onSaveInstanceState() and onRestoreState() but saving lots of calculations, makes impossible for me.</p>

<p>So can anybody tell me solution for saving game state, like whole activity can be saved on home button click and when i resume it open ups from where it was paused.</p>

<p>It is <strong>possible in iPhone</strong> that u can <strong>save whole screen or put it in background</strong> and resume it from where it was paused, managed by system or OS.</p>

<p>Thanks in advance,</p>
