I have played with the "Two Activities" example and have a query.
When you run the program (on emulator) the second activity starts and when one clicks an item in the list then you are returned to Main activity. All works as required .. however
When one wants to end the program you click on the return symbol and the first activity is stopped BUT second activity now pops up.
Is there an equivalent opposite command from "Startactivity" such as "Endactivity" to accomplish this...
i.e. I would like to clean up all activities when main activity is closed by user.
When you run the program (on emulator) the second activity starts and when one clicks an item in the list then you are returned to Main activity. All works as required .. however
When one wants to end the program you click on the return symbol and the first activity is stopped BUT second activity now pops up.
Is there an equivalent opposite command from "Startactivity" such as "Endactivity" to accomplish this...
i.e. I would like to clean up all activities when main activity is closed by user.