/reference/android/app/Activity.html#onPause()">onPause()</a></code> method is called before
<code><a href="../../../reference/android/app/Activity.html#onStop()">onStop()</a></code>, you should use <code><a href="../../../reference/android/app/Activity.html#onStop()">onStop()</a></code>
to perform larger, more CPU intensive shut-down operations, such as writing information to a
database.</p>

<p>For example, here's an implementation of <code><a href="../../../reference/android/app/Activity.html#onStop()">o