title: Android NFC and onNewIntent()
body: <p>When writing the <code>onNewIntent(Intent intent)</code> method in an NFC Activity, is it neccessary/correct to call <code>super.onNewIntent(intent)</code> ?</p>
  
  <p>I ask because this <a href="https://developer.android.com/guide/topics/connectivity/nfc/nfc.html" rel="nofollow noreferrer">official example</a> includes it:</p>
  
  <pre><code>@Override
  protected void onNewIntent(Intent intent) {
      super.onNewIntent(intent);
      ...
      if (intent != null &amp;&amp; NfcAdapter.ACTION_NDEF_DISCOVERED.equals(intent.getAction())) {
          Parcelable[] rawMessages =
              intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);
          if (rawMessages != null) {
              NdefMessage[] messages = new NdefMessage[rawMessages.length];
              for (int i = 0; i &lt; rawMessages.length; i++) {
                  messages[i] = (NdefMessage) rawMessages[i];
              }
              // Process the messages array.
              ...
          }
      }
  }
  </code></pre>
  
  <p>But this <a href="https://developer.android.com/guide/topics/connectivity/nfc/advanced-nfc.html" rel="nofollow noreferrer">other official example</a> doesn't:</p>
  
  <pre><code>public void onNewIntent(Intent intent) {
      Tag tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
      //do something with tagFromIntent
  }
  </code></pre>
  
  <p>Presumably, the second example is incomplete (and incorrect) but I would just like to be sure.</p>