Skip to content

Most visited

Recently visited

added in API level 9


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:

This is the high level manager, used to obtain this device's NfcAdapter. You can acquire an instance using getSystemService(Class).
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).
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.
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.


NfcAdapter.CreateNdefMessageCallback A callback to be invoked when another NFC device capable of NDEF push (Android Beam) is within range. 
NfcAdapter.OnNdefPushCompleteCallback A callback to be invoked when the system successfully delivers your NdefMessage to another device. 
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. 


NdefMessage Represents an immutable NDEF Message. 
NdefRecord Represents an immutable NDEF Record. 
NfcAdapter Represents the local NFC adapter. 
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. 


This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)