title: android: how to handle onStop method call
body: <p>If I have a method called <code>onStop</code> and it calls <code>super.onStop();</code>. When does this method run?</p>
  
  <p>In my main activity, I start another activity as follows: <code>startActivity(new Intent(this, MyNewActivity.class));</code>. Does this automatically stop my main activity and call <code>onStop</code>?</p>
  
  <p>Also, what kind of things should I do in the <code>onStop</code> method of my main activity. So far all I have done is unregister listeners to free up space but other than that is there anything else I should do?</p>
  
  <p>Thank you, any help is greatly appreciated.</p>