Android: Saving last opened activity
<p>I'm developing a game that is played by stages. Now here is the flow of the xml Start > List of stages. when I press start button I will be directed to stages page that has 5 buttons named stage 1 to stage 5 but the button stage 2 to stage 5 is disabled at the moment. It will be enabled if the user finished stage 1. What I want to do is if I unlocked stage 2 then I terminate the app, when I opened it again after I press start button I want to see that the stage 2 is unlocked already. How can I do that? what is happening is when I terminate then launch again after I press start button, the last stage I finished is still unlocked. in every stage the user unlocked should be saved so that if the game is closed using back button or home key, the last stage unlocked by the user still saved.</p>
