title: OnNewIntent not called when starting up an Activity through a NFC tag
body: <p>I have an app that reads data from a NFC tag and prints it. Following this <a href="https://developer.android.com/guide/topics/connectivity/nfc/nfc.html#filtering-intents" rel="nofollow noreferrer">https://developer.android.com/guide/topics/connectivity/nfc/nfc.html#filtering-intents</a>  (see the section ACTION_TECH_DISCOVERED), I can start the app when I scan the NFC tag from android itself. However, this doesn't trigger the OnNewIntent method, that then parses and prints the data contained in the tag. It only works if I rescan the tag when the app is already open.</p>
  
  <p>In mainActivity:</p>
  
  <pre><code>@Override
      protected void onNewIntent(Intent intent) {
          if (NfcAdapter.ACTION_TECH_DISCOVERED.equals(intent.getAction())) {
            //stuff
          }
      }
  </code></pre>
  
  <p>In manifest:</p>
  
  <pre><code>&lt;activity android:name=".MainActivity"
          &lt;intent-filter&gt;
              &lt;action android:name="android.nfc.action.TECH_DISCOVERED" /&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
          &lt;meta-data
              android:name="android.nfc.action.TECH_DISCOVERED"
              android:resource="@xml/filter_nfc"
          /&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>The question is: is it possible to trigger the OnNewIntent method directly, or is there another method?</p>
  
  <p>Thank you</p>