How to clear Activity Stack on Button Click in Android
<p>I have a question that I have a logout button in my App on which we have called an App login Screen but at this point when user press the Back Button of Android Phone, he entered in the App again without Authentication, which is not desirable. I want when we click on Logout button All previous Activity Stack being cleared or we can say that All previous onPause Activities have to be cleared.</p>

<p>Please Suggest me the right solution for this problem.</p>

<p>Thanks in advance.</p>
