Possible Duplicate:
How to make an android app return to the last open activity when relaunched?
I’m converting my iOS App to Android.
In iOS I used NSUserDefaults to save the last view used so it will return on that view after the app has been closed.
For Android I would like to do the same.
This is what I’m trying to achieve:
User navigates to a specific Activity > App saves activity in memory > User quits App > User Starts App again > User sees the last used activity again.
Where should I start looking for? Is there a simple way to achieve my goal?
Yes,you can save last activity’s name in the shared preferences.
It is nicely explained here.
Hope this will solve your problem 🙂