Skip to content Skip to sidebar Skip to footer

Detecting Nfc On Android Devices

Well, my purpose is to detect if the Android device supports NFC and if not I will use some other technology. I have set my minimum API level to 8 as I want my app to function even

Solution 1:

Step #1: Put this in your manifest:

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

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

Post a Comment for "Detecting Nfc On Android Devices"