title: How to get the card ID using nfc(android studio)
body: <p>Good day, I can not get indifikator maps, how can this be done?
  Here is my code:</p>
  
  <pre><code>@Override
      protected void onNewIntent(Intent intent) {
      super.onNewIntent(intent);
  
      Log.d(TAG, "onNewIntent");
  
      // check for NFC related actions
      if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(intent.getAction())) {
          TextView lata = (TextView) findViewById(R.id.tv);
          Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
          lata.setText(tag.toString());
  
          Tag tag1 = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
  
          byte[] id = tag.getId();
  
      }
  
  }
  </code></pre>