Skip to content
Advertisement

When are ALL the cases when the onSaveInstanceState() method called?

All the sources I read have all mentioned couple of cases and concluded with “a few other cases”. What are ALL the cases when the onSaveInstanceState method called in a View/Activity?

Advertisement

Answer

The doc says

This method is called before an activity may be killed so that when it comes back some time in the future it can restore its state.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement