title: NFC Empty tag reading issue
body: <p>I am currently involved in a project in which I need to communicate using NFC.</p>
  
  <p>When I'm trying to read an NFC tag, its perfectly working for URI and texts.</p>
  
  <p>But when I'm trying to read an empty NFC tag its showing a default "Empty tag" message which is not defined in my code.</p>
  
  <p><em>AndroidManifest.xml</em>:</p>
  
  <pre><code>&lt;activity
    android:name=".ReadActivity"
    android:label="@string/app_name" &gt;
    &lt;intent-filter&gt;
      &lt;action android:name="android.nfc.action.NDEF_DISCOVERED"/&gt;
      &lt;data android:mimeType="application/example.nfcdemo"/&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.TAG_DISCOVERED"/&gt;
      &lt;category android:name="android.intent.category.DEFAULT"/&gt;
    &lt;/intent-filter&gt; 
  &lt;/activity&gt;
  </code></pre>
  
  <p><code>onCreate()</code> method:</p>
  
  <pre><code>if (intent.getType() != null &amp;&amp; intent.getType().equals(MimeType.NFC_DEMO)) {
    Parcelable[] rawMsgs = getIntent().getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);
    NdefMessage msg = (NdefMessage) rawMsgs[0];
    NdefRecord cardRecord = msg.getRecords()[0];
    String msg = new String(cardRecord.getPayload());
    displayMessage("Tag Written here : " +msg);
  }
  else {
    displayMessage("This is an empty tag");
  }
  </code></pre>
  
  <p>I would like to show a custom message like this using my own activity.</p>
  
  <p>Any suggestions? </p>