I want each activity in my android app to contain a self made navigation view that looks like this
ActivityStartedFirst > 2ndActivity > YouAreHereActivity
Where ActivityStartedFirst and 2ndActivity is clickable and takes me back to those activites.
So if I go to e.g. ActivityStartedFirst then 2ndActivity and YouAreHereActivity will still be shown so the user can revert his choise and move up again.
Everything is trivial except: how do I best go about passing the intent list from activity to activity without loosing it when android destroys my activity after onPause? Any ideas? Do I just use a static variable in my base activity and just save the intents as pacelables in onPause and if the static variable is null when onCreate is called (that means android killed my app) then the intents are restored from the parcelables? Whould something like that be sensible?