using onSaveInstanceState(Bundle ..) and onRestoreInstanceState(Bundle ..)
was really good and work, but it is working when click Turn off button on Emulator.
Now, i want to save state and restore the saved data when below button used:

I think it is possible to use OnPause() OR oOnStop(), if i am right, How to use it,
it will be enough to show me Java source of saving one boolean variable, and restore it,
Thanks.
I would use
onPause(), asonStop()is not guaranteed to be called. See the application fundamentals for details on the lifecycle.To save and restore a boolean, I would use
SharedPreferences. There is a code example on the data storage page that shows how to save and restore a boolean. They useonCreate()andonStop(), but I would useonResume()andonPause(), for the reasons I have already mentioned.