home button pressed
<p>What exactly happens when I press home button in Android? 
Because when I open it again after home button pressed, it has series of bugs. 
I need to know it to track down the point that causes that bugs. </p>

<p>UPDATE:
when pressing home button, application goes to background and <code>onPause()</code> is called and saves the state of UI, however it does not save state of application, like variables, custom views. And you have to save them manually, as Oren explained.</p>
