title: How to use onResume()?
body: <p>Can anyone give me an example that uses <code>onResume()</code> in Android?</p>
  
  <p>Also, if I want to restart the activity at the end of the execution of another, which method is executed—<code>onCreate()</code> or <code>onResume()</code>?</p>
  
  <p>And if I want to update data, how do I put it in <code>onResume()?</code></p>