title: Android: onSaveInstanceState not being called from activity
body: <p>I have an Activity A which calls Activity B. In Activity B, when i click on a button, finish() is called, which in turn calls onDestroy() of Activity B and returns to activity A. </p>
  
  <p>According to android documentation, Before onDestroy is called, onSaveInstanceState(Bundle bundle) will be called, where i do the following. </p>
  
  <pre><code>@Override
      public void onSaveInstanceState(Bundle outState) {
  
          super.onSaveInstanceState(outState);
          System.out.println("Saving webview state");
          Log.d(TAG, "In onsave");
          wv.saveState(outState);
  
      }
  </code></pre>
  
  <p>and the next time Activity B is started from Activity A, </p>
  
  <p>in the oncreate(), i do the following:</p>
  
  <pre><code>onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  
  if(savedInstanceState != null){
  //restore webview
  }else {
  // code
  }
  }
  </code></pre>
  
  <p>However, before calling onDestroy in Activity B, The onSaveInstanceState method is never called. 
  any help on this will be greatly appreciated.</p>
  
  <p>EDIT: if this is not possible. Please let me know if there is a way to store webview state</p>