supports NFC NdefFormatable - Android Network

Android examples for Network:NFC Ndef

Description

supports NFC NdefFormatable

Demo Code


//package com.java2s;

import android.nfc.Tag;

public class Main {
    public static boolean supportsNdefFormatable(Tag tag) {

        String techs[] = tag.getTechList();
        for (String tech : techs) {
            if (tech.equals("android.nfc.tech.NdefFormatable"))
                return true;
        }/*w  ww  .j  ava2s.  c  om*/

        return false;
    }
}

Related Tutorials