Code example for LocalActivityManager

Methods: saveInstanceState

0
   
  @Override 
  public void onSaveInstanceState(Bundle outState)
  { 
    super.onSaveInstanceState(outState);
    outState.putBundle(STATE_BUNDLE_KEY, mManager.saveInstanceState());
  } 
   
  @Override 
  public void onResume() 
  { 
    super.onResume(); 
    mManager.dispatchResume();
  } 
   
  @Override 
  public void onPause() 
  { 
    super.onPause(); 
    mManager.dispatchPause(getActivity().isFinishing());
  }