title: I get the same extra data from notifications even if I create some intents with different data
body: <p>I copied and paste from this <a href="http://developer.android.com/guide/topics/ui/notifiers/notifications.html#SimpleNotification" rel="nofollow">document</a> and tried to <code>PutExtra</code>.</p>
  
  <p>I tapped <code>button1</code>, <code>button2</code> and <code>button3</code>, and then tapped a notification from <code>button1</code>, but <code>ResultActivity</code> was started with <code>button3</code>, why?</p>
  
  <p>I want to be displayed as <code>button1</code>. Do you know a solution?</p>
  
  <pre><code>public class MainActivity extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          findViewById(R.id.button).setOnClickListener(listener);
          findViewById(R.id.button2).setOnClickListener(listener);
          findViewById(R.id.button3).setOnClickListener(listener);
      }
  
      private View.OnClickListener listener = new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              switch (v.getId()) {
                  case R.id.button:
                      notifyNotification("button1");
                      break;
                  case R.id.button2:
                      notifyNotification("button2");
                      break;
                  case R.id.button3:
                      notifyNotification("button3");
                      break;
              }
  
          }
      };
  
      private int mId = 0;
  
      private void notifyNotification(String value) {
          NotificationCompat.Builder mBuilder =
                  new NotificationCompat.Builder(this)
                          .setSmallIcon(android.R.drawable.stat_notify_chat)
                          .setContentTitle("My notification")
                          .setContentText(value);
          // Creates an explicit intent for an Activity in your app
          Intent resultIntent = new Intent(this, ResultActivity.class);
          resultIntent.putExtra("value", value); // ***** I added this code *****
  
          // The stack builder object will contain an artificial back stack for the
          // started Activity.
          // This ensures that navigating backward from the Activity leads out of
          // your application to the Home screen.
          TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);
          // Adds the back stack for the Intent (but not the Intent itself)
          stackBuilder.addParentStack(ResultActivity.class);
          // Adds the Intent that starts the Activity to the top of the stack
          stackBuilder.addNextIntent(resultIntent);
          PendingIntent resultPendingIntent =
                  stackBuilder.getPendingIntent(
                          0,
                          PendingIntent.FLAG_UPDATE_CURRENT
                  );
          mBuilder.setContentIntent(resultPendingIntent);
          NotificationManager mNotificationManager =
                  (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
          // mId allows you to update the notification later on.
          mNotificationManager.notify(mId, mBuilder.build());
  
          mId++;
      }
  }
  
  public class ResultActivity extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_result);
  
          Intent intent = getIntent();
          String value = intent.getStringExtra("value");
  
          ((TextView)findViewById(R.id.textView)).setText(value);
      }
  }
  </code></pre>