I'd like to preserve the state of my activity when it's swiped away from the Recent Apps list, so that when the user launches my app again, it would be in the same state that the user had left it.
Based on my debugging, it looks like my activity's onSaveInstanceState()
gets called when the recent apps list is shown, but then, after I swipe away my app and relaunch it, I never get my savedInstanceState
back.
How can I preserve my state across this interaction?