Android: onSaveInstanceState not being called from activity

I had a similar situation. It was clearly a dev bug. I’ve overridden the wrong method:

public void onSaveInstanceState(Bundle outState, 
                                PersistableBundle outPersistentState)

Instead a correct one:

protected void onSaveInstanceState(Bundle outState)

Leave a Comment