Unique LoL Apps
Unique LoL Apps

Reputation: 98

finish an activity that is back in the stack

Assume I have activities, like ACT1->ACT2>ACT3, if I open ACT4 I am having ACT1->ACT2->ACT3->ACT4. In this case I want to close ACT1, so I will have only 3 activities on my stack. Further when I open ACT5, I want to have only ACT3->ACT4->ACT5.

I tried startActivityForResult(curActivity) and then trying to close the old activites using finishActivity(curActivity - 3) but it doesn't work. Any help/suggestion will be very appreciated

Upvotes: 0

Views: 29

Answers (1)

Unique LoL Apps
Unique LoL Apps

Reputation: 98

using an Array of Activities is doing it's job, beside the use of memory it's ok

Upvotes: 1

Related Questions