title: Android put put extra on notification intent
body: <p>I'm having troubles with putExtras on my service class. First of all, I'm having a service, that receives new messages and creates a new notification</p>
  
  <p><strong>MyService.class</strong></p>
  
  <pre><code>public void showMessage(String jsonStr)
  {
  
  
  
          Intent notiIntent = new Intent(App.getContext(),MainActivity.class);
          notiIntent.putExtra("message-info", "info text");
  
          notiIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);
  
          PendingIntent pintent = PendingIntent.getActivity(App.getContext(), 0, notiIntent,0);
  
  NotificationCompat.Builder notificationBuilder =
                          new NotificationCompat.Builder(this)
                      .setAutoCancel(true)
                      .setSmallIcon(R.drawable.ic_launcher)
                      .setContentIntent(pintent);
  
  NotificationManager mNotificationManager =
                          (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
  
                      notificationBuilder.setTicker("New Message");
  notificationBuilder.setContentTitle("This is the title").setContentText("Message...");
  
  mNotificationManager.notify("myApp", 1234, notificationBuilder.build());
  
  }
  </code></pre>
  
  <p><strong>MainActivity.class</strong></p>
  
  <pre><code>@Override
  public void onNewIntent(Intent intent)
  {
      super.onNewIntent(intent);
      setIntent(intent);
  
      Intent temp = intent;
      Bundle extras = temp.getExtras();
      System.out.println("Log extra new intent: "+temp.getStringExtra("message-info"));
  
      if(extras != null)
      {
          System.out.println("Log extra new intent HAS EXTRA: "+temp.getStringExtra("message-info"));
      }
  }
  </code></pre>
  
  <p>I only get null values. App.getContext() references to my App class that extends from Application. </p>
  
  <p>Why doesn't MyActivity receive any extras?</p>