Adam
Adam

Reputation: 43

How to call exist activity in android

I have 3 activities A , B, C. I call activity B from activity A, call C from B:

Intent intent = new Intent(A.this, B.class);
startActivity(intent);

Intent intent = new Intent(B.this, C.class);
startActivity(intent);

I want to go back to activity A once from activity C, not create new activity A .

How I can do that?

Upvotes: 0

Views: 87

Answers (1)

Suhas
Suhas

Reputation: 1471

What do you mean by recall?

If you mean you want to go back to activity A once you are done with activity B, you could call finish() in activity B which will resume activity A.

Upvotes: 1

Related Questions