Starting Activities in a looping chain
<p>I have three Activities, which are started in a chain. ActivityA starts ActivityB, which then starts ActivityC. I also have an Application object.</p>

<p>ActivityA starts ActivityB with (this snippet is actually in an anonymous class, so it needs <code>getApplicationContext()</code> instead of <code>this</code>).</p>

<pre><code>startActivity(new Intent(getApplicationContext(), ActivityB.class));
</code></pre>

<p>ActivityB starts ActivityC with</p>

<pre><code>startActivity(new Intent(this, ActivityC.class));
</code></pre>

<p>In ActivityC, if the user wants to go back to ActivityA, he will click a Button that invokes</p>

<pre><code>startActivity(new Intent(getApplication(), ActivityA.class));
</code></pre>

<p>My question is, is this the correct way to do this while avoiding memory leaks?</p>
