Skip to content

Most visited

Recently visited



public final class NfcManager
extends Object

   ↳ android.nfc.NfcManager

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

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

Alternately, you can just call the static helper 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.

See also:


Public methods

NfcAdapter getDefaultAdapter()

Get the default NFC Adapter for this device.

Inherited methods

From class java.lang.Object

Public methods


added in API level 10
NfcAdapter getDefaultAdapter ()

Get the default NFC Adapter for this device.

NfcAdapter the default NFC Adapter

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)