NFC detection on Android devices

Well, my goal is to determine if the Android device supports NFC, and if not, I will use some other technologies. I set the minimum API level to 8, because I want my application to work even on these devices without NFC.

Is there a method like isNFCSupported ()? any ideas?

thanks yosoh.

+8
android nfc
source share
1 answer

Step # 1: Put this in your manifest:

<uses-feature android:name="android.hardware.nfc" android:required="false" /> 

Step # 2: Call hasSystemFeature(PackageManager.FEATURE_NFC) in the PackageManager to find out if NFC is available on the current device

+23
source share

All Articles