Code example for Tag

Methods: getTechList

0
                DATE_FORMAT.format(System.currentTimeMillis()));
        NdefMessage message = createTextMessage(text, languageCode);
 
        // タグの判定をした後に、書き込みます 
        Tag tag = (Tag)intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
        List<String> techList = Arrays.asList(tag.getTechList());
        if (techList.contains(Ndef.class.getName())) {
            Ndef ndef = Ndef.get(tag);
            writeNdefToNdefTag(ndef, message);
 
            Toast.makeText(getApplicationContext(), "wrote NDEF to NDEF tag", Toast.LENGTH_SHORT)
                    .show();
        } else if (techList.contains(NdefFormatable.class.getName())) {
            NdefFormatable ndef = NdefFormatable.get(tag);
            writeNdefToNdefFormatable(ndef, message);
 
            Toast.makeText(getApplicationContext(), "wrote NDEF to NDEFFormatable tag",
                    Toast.LENGTH_SHORT).show();
        } else { 
            Toast.makeText(getApplicationContext(), "NDEF Not Supported", Toast.LENGTH_SHORT)
Connect your IDE to all the code out there  Get Codota for Java
3
CodeRank

Further Reading