Code example for LocalActivityManager

Methods: saveInstanceState

0
    } 
     
    @Override 
    public void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);
        outState.putBundle(KEY_STATE_BUNDLE, mLocalActivityManager.saveInstanceState());
    } 
     
    @Override 
    public void onResume() { 
        super.onResume(); 
        Log.d(TAG, "onResume(): " + getClass().getSimpleName());
        mLocalActivityManager.dispatchResume();
    } 
     
    @Override 
    public void onPause() { 
        super.onPause(); 
        Log.d(TAG, "onPause(): " + getClass().getSimpleName());
        mLocalActivityManager.dispatchPause(getActivity().isFinishing());
    }