title: Can't invoke NFC onNewIntent() method
body: <p>i'm trying to read the ID of Mifare Classic 1k card using foreground dispatch. As i can see from my logs, i can enable foreground dispatch, but can not invoke onNewIntent() method. Any suggestions would be appreciated.</p>
  
  <p><strong>MainActivity.java</strong></p>
  
  <pre><code>...
  @Override
     protected void onResume() {
        setupForegroundDispatch(this, mAdapter);
        super.onResume();
  } 
  
  public static void setupForegroundDispatch(final Activity activity, NfcAdapter adapter) {
      final Intent intent = new Intent(activity.getApplicationContext(), activity.getClass());
      intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
      System.out.println("Setup FGD.");  // i can see this output.
  
      final PendingIntent pendingIntent = PendingIntent.getActivity(activity.getApplicationContext(), 0, intent, 0);
  
      IntentFilter[] filters = new IntentFilter[1];
      String[][] techList = new String[][]{};
  
      // Notice that this is the same filter as in our manifest.
      filters[0] = new IntentFilter();
      filters[0].addAction(NfcAdapter.ACTION_NDEF_DISCOVERED);
      filters[0].addCategory(Intent.CATEGORY_DEFAULT);
      try {
          filters[0].addDataType(MIME_TEXT_PLAIN);
      } catch (MalformedMimeTypeException e) {
          throw new RuntimeException("Check your mime type.");
      }
  
      adapter.enableForegroundDispatch(activity, pendingIntent, filters, techList);
      System.out.println("Enabled FGD.");  // and this one.
  }
  
  protected void onNewIntent(Intent intent) { 
      System.out.println("Intent."); but i cannot see this one,
      handleIntent(intent);
  }
  
  private void handleIntent(Intent intent) {      
      System.out.println("Handle.");  // and this one.
      String action = intent.getAction();
      if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(action)) {
          System.out.println("NDEF discovered.");
           ....
  </code></pre>
  
  <p><strong>AndroidManifest</strong></p>
  
  <pre><code>....
   &lt;activity
          android:name=".MainActivity"
          android:label="@string/app_name" &gt;
  
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
  
          &lt;intent-filter&gt;
              &lt;action android:name="android.nfc.action.TECH_DISCOVERED" /&gt;
              &lt;action android:name="android.nfc.action.NDEF_DISCOVERED" /&gt;
              &lt;action android:name="android.nfc.action.TAG_DISCOVERED" /&gt;
           &lt;/intent-filter&gt;
  
          &lt;meta-data
                  android:name="android.nfc.action.TECH_DISCOVERED"
                  android:resource="@xml/nfc_tech_filter" /&gt;
      &lt;/activity&gt;
  ....
  </code></pre>