I recently posted a question, and the answer I got was related to the status of savedInstanceState. I would like to know in which cases information is saved in savedInstanceState, also for what other purpose does the OS uses the savedInstanceState. I've found some info which relates savedInstanceState with Android lifecycle, but I can't understand exactly how.
Whenever an Activity is killed for resources or restarted due to configuration changes, onSaveInstanceState is called. This includes when a background Activity is terminated.
If an Activity is killed for normal reasons (like by calling finish) or terminated due to crash/ANR/force stopped then it isn't.