Terminate android app
<p>I have an app with an intro screen, there will be two buttons in this screen (Ok and Cancel)</p>

<p>If the user clicks the cancel button the application will terminate, and if the user clicks the ok button ,the main screen appears, the main screen got a back button to go back to the intro screen.</p>

<p>Now, my problem is I have used  </p>

<pre><code>finish();
</code></pre>

<p>for the cancel button, and what I understood is that the '<code>finish()</code>' will terminate the current running activity.</p>

<p>Once the application is started and if the user clicks the cancel button, the app terminates, but if the user goes to the main screen and comes back to the intro screen and then click cancel the intro screen will exit(Activity responsible for the intro screen).and the main screen appears back.</p>

<p>This forms a continuous loop since the previous Activity (activity opened just before the intro activity) will always appear even if the user clicks the cancel button...</p>

<p>Does anyone have an idea how to terminate more than one activity at a time?</p>
