Added in API level 9

android.nfc


Provides access to Near Field Communication (NFC) functionality, allowing applications to read NDEF message in NFC tags. A "tag" may actually be another device that appears as a tag.

For more information, see the Near Field Communication guide.

Here's a summary of the classes:

NfcManager
This is the high level manager, used to obtain this device's NfcAdapter. You can acquire an instance using getSystemService(Class).
NfcAdapter
This represents the device's NFC adapter, which is your entry-point to performing NFC operations. You can acquire an instance with getDefaultAdapter(), or getDefaultAdapter(android.content.Context).
NdefMessage
Represents an NDEF data message, which is the standard format in which "records" carrying data are transmitted between devices and tags. Your application can receive these messages from an ACTION_TAG_DISCOVERED intent.
NdefRecord
Represents a record, which is delivered in a NdefMessage and describes the type of data being shared and carries the data itself.

Note: Not all Android-powered devices provide NFC functionality.

Interfaces

NfcAdapter.CreateBeamUrisCallback This interface was deprecated in API level 29. this feature is removed. File sharing can work using other technology like Bluetooth. 
NfcAdapter.CreateNdefMessageCallback This interface was deprecated in API level 29. this feature is removed. File sharing can work using other technology like Bluetooth. 
NfcAdapter.OnNdefPushCompleteCallback This interface was deprecated in API level 29. this feature is removed. File sharing can work using other technology like Bluetooth. 
NfcAdapter.OnTagRemovedListener A callback that is invoked when a tag is removed from the field. 
NfcAdapter.ReaderCallback A callback to be invoked when the system finds a tag while the foreground activity is operating in reader mode. 

Classes

AvailableNfcAntenna Represents a single available Nfc antenna on an Android device. 
NdefMessage Represents an immutable NDEF Message. 
NdefRecord Represents an immutable NDEF Record. 
NfcAdapter Represents the local NFC adapter. 
NfcAntennaInfo Contains information on all available Nfc antennas on an Android device as well as information on the device itself in relation positioning of the antennas. 
NfcEvent Wraps information associated with any NFC event. 
NfcManager High level manager used to obtain an instance of an NfcAdapter
Tag Represents an NFC tag that has been discovered. 

Exceptions

FormatException  
TagLostException