how to clear the the activity stack in android
<p>I have the following application flow in my android app,</p>

<p>Login->Home->screen1->screen2->screen3->screen4-> logout</p>

<p>In the screen4 I have a log out button, which allows the user to logout from the application and re-login. When I re-login to the app, the previous data is still shown. Is there a way to start the application fresh when the user logs out from the app?</p>

<p>NOTE: all the above activities launch mode set to "single task",</p>

<p>regards,
Sam.</p>
