@TargetApi(Build.VERSION_CODES.GINGERBREAD)
    public static boolean hasNfcFeature(Context context) {
        return hasNfcFeature(context.getPackageManager());
    }
@ TargetApi ( Build . VERSION_CODES . GINGERBREAD ) public static boolean hasNfcFeature ( Context context ) { return hasNfcFeature ( context . getPackageManager ( ) ) ; }
Checks if the device has a NFC.
@param context the context.
@return {@code true} if the device has a NFC.