title: The lifecycle methods onPause and onStop
body: <p>I am new to android. I have been working on it for one week. Unfortunately, I cannot handle the difference between the lifecycle methods <code>onPause()</code> and <code>onStop()</code>. Actually, I read some resources about these methods, but I cannot estimate which one is called when the cases listed below occurred.</p>
  
  <ol>
  <li><p>Pressing the home button of the smartphone when the activity X is demonstrated on the screen</p></li>
  <li><p>The smartphone enters into the sleep mode when the activity X is demonstrated on the screen</p></li>
  <li><p>Some smartphones can show more than application window on the screen. When only the activity X is demonstrated on the screen, I get the window of the activity X smaller and open second application. The windows of two applications are demonstrated on the screen of the phone.</p></li>
  </ol>
  
  <p>I am really sorry about asking this question, but I cannot overcome this.</p>
  
  <p>Is there anyone who can say which one of these two methods is executed for these scenarios and explain the difference between these methods?</p>