There are multiple activities that can trigger registration activity
in my app.
Registration activity consists of 5 activities
activities. Now once registration is completed I want to take the user to ProfilePageActivity
, and when the user presses back button from ProfilePageActivity
, I want to take the user to the activity they were in when they called RegistrationActivity
If I use these;
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
they will remove the entire stack, and when the user presses the back button it will exit the application.
I want to know if there is any way I can define the range of activities to be deleted from the stack.