tml#onStop()">onStop()</a></code> and <code><a href="../../../reference/android/app/Activity.html#onRestart()">onRestart()</a></code>, which allow you to
specifically handle how your activity handles being stopped and restarted. Unlike the paused state,
which identifies a partial UI obstruction, the stopped state guarantees that the UI is no longer
visible and the user's focus is in a separate activity (or an entirely separate app).</p>

<p class="note"><strong>Note:</strong> Because the system retains your