title: Android Notification open currently running app instead of creating a new process?
body: <p>Im receiving a push notification with a custom Uri scheme: <code>myapp://main</code></p>
  
  <p>In my <code>onReceive</code> i create a notification:</p>
  
  <pre><code>public void createNotification(Context context, String title, String message, String summary, Uri uri) {
      Notification.Builder notification = new Notification.Builder(context)
              .setContentTitle(title)
              .setContentText(message)
              .setSmallIcon(R.drawable.ic_launcher)
              .setDefaults(Notification.DEFAULT_LIGHTS)
              .setAutoCancel(true);
  
      if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.JELLY_BEAN &amp;&amp; summary != null)
          notification.setSubText(summary);
  
  
      Intent intent = new Intent("android.intent.action.VIEW", uri);
      PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);
      notification.setContentIntent(pendingIntent);
  
      Notification noti;
      if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.JELLY_BEAN)
          noti = notification.build();
      else
          noti = notification.getNotification();
  
      NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
      notificationManager.notify(0, noti);
  }
  </code></pre>
  
  <p>When I then tap on that notification it opens a new Activity which is my MainActivity. But it seems like it creates a whole new process aswell instead of just opening my currently running app.</p>
  
  <p>Are there some flags Im missing?</p>