From my research on the internet, I found that if my app process is killed by the system, next time the user goes back to it, the system will restore the activity stack. That is, any activity on top of the root activity remains there, but only the very top one is recreated. (see here)
I tested this by killing my process in monitor (ddms). I don't see activity stack restored. Only the root activity appears. So anything I'm missing here? What else do I need to implement for the stack to be restored?
I found the "persistableMode" attribute. Is that what I need? docs
Or the android:alwaysRetainTaskState? docs