android - How to finishes the all acitivities
<p>My application have 10 activities. Every activity contains one button.if you click on that button then all activities will be finished(it means like Logout in gmail). Here i am using 2 steps. But it's not working.
1. Clear the stack using intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) for every activity calling.
2. this.finish() in button click listener.  </p>

<p>How to implement it. Please can anybody help me</p>

<p>thanks</p>
