How can I save the application back stack to a bundle?
问题 I'd like to save the state of my application so that when it is reopened from a closed state, the last fragment is visible and the back stack is preserved. I'd like to preserve this state every time the application is closed, not just on an orientation change or when the system kills the app to free up resources (as is the case when using onSaveInstanceState() / onRestoreInstanceState() . So far I've been able to restore the previous fragment and its state as planned by saving the state to