I am working on a NFC Android Project. I want to import “import.android.nfc.tag;” in my project. But it generates error.
When I am going to write package import android.nfc.__; Then ADT plugins shows only four option that are nfcAdapter ,NdefMessage, NdefRecord, FormatException . But I think there should be more options. I am too much in confusion. Can anybody suggest me solution. Thanks.
UPDATED:
You should read documentation. You can find doc about NFC here: android.nfc. There are only for classes
NfcManager,NfcAdapter,NdefMessageandNdefRecord. That’s it.If you are confused about how to use them, please see Near Field Communication article and NFCDemo example.
You most likely using wrong SDK Level. Make sure that you’re using at least Android SDK Level 9.