is NFC Available - Android Network

Android examples for Network:NFC

Description

is NFC Available

Demo Code


//package com.java2s;

import android.nfc.NfcAdapter;

public class Main {
    private static NfcAdapter nfcAdapter = null;

    public static Boolean isAvailable() {
        if (nfcAdapter != null && nfcAdapter.isEnabled())
            return true;
        else/*  w  w w  .  j av a2s .co  m*/
            return false;
    }
}

Related Tutorials