title: How to update the intent this activity will started with after recovering from background?
body: <p>My activity in handler <code>onCreate</code> retrieves a value from Intent and do something with it</p>
  
  <pre><code>protected void onCreate(Bundle b){
      ....
      Intent i = getIntent();
      if (i.hasExtra("value")){
        String val = i.getStringExtra("value");
        doSomethingWithValue(val);
      }
  }
  </code></pre>
  
  <p>Note that my activity has attribute <code>android:launchMode="singleTask"</code> in manifest.
  After executing <code>doSomethingWithValue</code> I want to clear <code>"value"</code> extra from the intent, so when next time the activity is recovering from background the intent returned but <code>getIntent()</code> should not have <code>"value"</code> extra. How can I clear this value for the next execution of <code>onCreate</code>? <code>setIntent</code> does not work here.</p>
  
  <p>In other words when I press back button and then return to my app  <code>doSomethingWithValue(val)</code> is executed again but I do not need this.</p>