Hi,
I have a list of activities that open sequentially. For example, Activity 1 call Activity 2, then Activity 2 open Activity 3, Activity 3 open Activity 4 and finally Activity 4 open Activity 5. All the activities have Appcompact navigation toolbar with the arrow (back).
When Activity 5 is finished, Activity 2 is called. I would like in Activity 5 before calling Activity 2, closing(finish) Activity 3 and 4, so when you are in Activity 2 and you press the Back button or the arrow of the navigation toolbar, you go to Activity 1 and not to another.
Somebody could help me?
Thank you,
I have a list of activities that open sequentially. For example, Activity 1 call Activity 2, then Activity 2 open Activity 3, Activity 3 open Activity 4 and finally Activity 4 open Activity 5. All the activities have Appcompact navigation toolbar with the arrow (back).
When Activity 5 is finished, Activity 2 is called. I would like in Activity 5 before calling Activity 2, closing(finish) Activity 3 and 4, so when you are in Activity 2 and you press the Back button or the arrow of the navigation toolbar, you go to Activity 1 and not to another.
Somebody could help me?
Thank you,