added in API level 10


public final class NfcManager
extends Object

   ↳ android.nfc.NfcManager

High level manager used to obtain an instance of an NfcAdapter.

Use Context.getSystemService(java.lang.String) with Context.NFC_SERVICE to create an NfcManager, then call getDefaultAdapter() to obtain the NfcAdapter.

Alternately, you can just call the static helper NfcAdapter.getDefaultAdapter(android.content.Context).

Developer Guides

For more information about using NFC, read the Near Field Communication developer guide.

Instances of this class must be obtained using Context.getSystemService(Class) with the argument NfcManager.class or Context.getSystemService(String) with the argument Context.NFC_SERVICE.


Public methods

NfcAdapter getDefaultAdapter()

Get the default NFC Adapter for this device.

Inherited methods

Public methods


added in API level 10
public NfcAdapter getDefaultAdapter ()

Get the default NFC Adapter for this device.

NfcAdapter the default NFC Adapter