title: NFC android manifest
body: <p>I have added the following code to my manifest file:</p>
  
  <pre><code> &lt;activity
              android:name="com.example.123.scan"
              android:label="@string/app_name" &gt;
              &lt;intent-filter&gt;
              &lt;action android:name="android.nfc.action.NDEF_DISCOVERED"/&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
              &lt;intent-filter&gt;
              &lt;action android:name="android.nfc.action.TECH_DISCOVERED"/&gt;
              &lt;/intent-filter&gt;
              &lt;intent-filter&gt;
              &lt;action android:name="android.nfc.action.TAG_DISCOVERED"/&gt;
              &lt;/intent-filter&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.scan" /&gt;
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
              &lt;/activity&gt;
  </code></pre>
  
  <p>Every time I start my app.
  I could not get the intent of NFC that I need to proceed.</p>
  
  <pre><code>public void onResume() {
          super.onResume();
  Toast.makeText(this, "onResume", Toast.LENGTH_SHORT).show();
          String sss=getIntent().getAction();
          Toast.makeText(this,sss, Toast.LENGTH_SHORT).show();
          if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(sss)) {
              Toast.makeText(this, "NDEF", Toast.LENGTH_SHORT).show();
              processIntent(getIntent());
          }
          if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(sss)) {
              Toast.makeText(this, "TAG", Toast.LENGTH_SHORT).show();
              processIntent(getIntent());
          }
          if (NfcAdapter.ACTION_TECH_DISCOVERED.equals(sss)) {
              Toast.makeText(this, "TECH", Toast.LENGTH_SHORT).show();
              processIntent(getIntent());
          }
          }
  </code></pre>
  
  <p>Every time, it toasted <code>android.intent.action.scan</code> instead of the NFC intent. <br/>
  What is the problem?</p>