Remove all the previous activities from the back stack

intent.setFlags(
Intent.FLAG_ACTIVITY_NEW_TASK
|
Intent.FLAG_ACTIVITY_CLEAR_TASK
);

Reference: https://stackoverflow.com/questions/12947916/android-remove-all-the-previous-activities-from-the-back-stack

Leave a Comment

Your email address will not be published. Required fields are marked *

top