title: Change intent bundle data before an activity is re-created after orientation change
body: <p>I have a notification that starts my activity and passes a messages using the intent's  putExtra() function. The message is then displayed to the user in the activity's onCreate function. When the application is restarted due to a orientation change, the message is shown again as it is still in the intent's bundled data.</p>
  
  <p>How can I remove the extra data?</p>
  
  <p>I tried the following:</p>
  
  <pre><code>Bundle bundle = getIntent().getExtras();
  if (bundle.getBoolean("showMessage")) {
      // ... show message that is in bundle.getString("message")
      // remove message
      bundle.remove("showMessage");
  }
  </code></pre>
  
  <p>But the message will still be shown after the orientation changed, seems like the intent used is not the one I changed, but the original one. The only workaround I found is to save the showMessage additionally in o<code>nSaveInstanceState()</code>.
  Is there another way? Or is this the way to go?</p>