tags:

views:

24

answers:

1

I have three activities, A, B and C.

User can start activity B from A, and then C from B.

I would like to have following. In C the user fill some field and click "OK"-Button. After that both activities B and C should be finished.

I don't like my idea, to finish A after starting B, then finish B after starting C, and then start A from C.

What is the best way to do that?!

Is it possible to finish parent activity from the child? If, yes, then that would be my solution. But i haven't find any information about that.

Thank you,

Mur

+1  A: 

in Activity B, call Activity C with startActivityForResult. In the ActivityB.onActivityResult() method, call finish() when Activity C returned with a good result. This gets you back to Activity A.

Thorstenvv
Thank you, I've just tested your solution. It works fine for me and in that way, I want that to have.
Mur Votema