code: public void onSaveInstanceState(Bundle outState) {
      hasSavedState = true;
      outState.putParcelable(KEY_STATE, new State(observableManager.id(), group.id()));
    }
docs: Call this method from your Activity or Fragment's onSaveInstanceState method