I have Activity A. It opens Activity B that is a dialog Activity with a listview.
I want on a click of an item in the list view, the following will happen:
- Window C will open
- Window B will be closed
- Window A will be closed
What is the most efficient way to do that?
(I do know that number 2 is easy (just add finish after opening activity C. Not sure about the rest).
You can use the startActivityForResult, and if the 3° happens, before finish the B send the Intent back to A with a flag indicating that should close, then close A and open C.