title: How to properly remove all activity stack?
body: <p><code>Activity A -&gt; Activity B -&gt; Activity C -&gt; Activity D</code>. Pressing back in Activity D should navigate user out of the application, whereas Back should work normally for Activity C, B and A. i.e. <code>C -&gt; back -&gt; B -&gt; back A -&gt; back -&gt; exit</code>.</p>
  
  <p>I tried settings flags with <code>Activity.FLAG_ACITIVITY_CLEAR_TOP,</code> etc.. with different combination. Nothing seems to work. Minimum API level 7.</p>