device Supports Nfc - Android Hardware

Android examples for Hardware:NFC

Description

device Supports Nfc

Demo Code


//package com.java2s;

import android.content.Context;

import android.nfc.NfcAdapter;

public class Main {
    public static boolean deviceSupportsNfc(Context ctx) {
        return NfcAdapter.getDefaultAdapter(ctx) != null;
    }/*from w ww.j a va2 s .co  m*/
}

Related Tutorials