title: how to force restart activity from intent
body: <p>My <code>MainActivity</code> has the <code>lauchMode="singleTask"</code></p>
  
  <p>Now I want to start the activity from a notification with special intent data.
  in <code>MainActivity.onResume</code> I access the given intent data...</p>
  
  <p>The problem is: When the activity already exists, and I click on the notification, the activity comes to foreground, but the method <code>onResume</code> is not called and I cannot access the intent data.</p>
  
  <p>I tried the flag <code>FLAG_ACTIVITY_CLEAR_TASK</code> and this works for Honeycomb but not for Gingerbread.</p>
  
  <p>This is how I start the activity from a notification:</p>
  
  <pre><code>Intent intent = new Intent();
  intent.setClass(this, MainActivity.class);
  intent.putExtra("triggerid", triggerid); 
  startActivity(intent);
  </code></pre>