How to use onPause with Android?
<p><br>
using <code>onSaveInstanceState(Bundle ..) and onRestoreInstanceState(Bundle ..)</code><br>
was really good and work, but it is working when click Turn off button on Emulator.<br>
Now, i want to save state and restore the saved data when below button used:<br>
<img src="http://i.stack.imgur.com/wEWUY.jpg" alt="Emulator"></p>

<p>I think it is possible to use OnPause() OR oOnStop(), if i am right, How to use it,<br>
it will be enough to show me Java source of saving one boolean variable, and restore it,<br>
Thanks.</p>
