What does this.finish() really do? Does it stop my code running?
<p>I'm a bit hazy about what exactly this.finish() does. Specifically, I just wrote the following lines of code in an activity:</p>

<pre><code>this.finish();
Globals gs = (Globals) getApplication();
gs.MainActivity.finish();
</code></pre>

<p>The code is meant to close the current activity and also close the core activity of the app. And it works great. However, I got wondering... obviously the current activity isn't quite ended after the first line is executed. And what if I was to call this.finish() and then start on some complicated computation?</p>

<p>My question is: When I call this.finish(), when exactly does my Activity get taken down?</p>
