• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps NfcAdapter interfaces problem

umlorg

Lurker
Hi there,

I am developing a NFC application using eclipse indigo.
I use android.nfc package and can import the following:

  • android.nfc.NdefMessage
  • android.nfc.NdefRecord
  • android.nfc.NfcAdapter
  • android.nfc.NfcEvent
But I can't seem to be able to import


  • android.nfc.NfcAdapter.CreateNdefMessageCallback
  • android.nfc.NfcAdapter.OnNdefPushCompleteCallback
I get the following error:
The import ... cannot be resolved.

I am rookie on android, but I don't see why these two interfaces can't be imported. I used an example from andorid developers site called beam.java and it imports those interfaces in the exact same manner.

Any help would be appriciated.
Thanks very much in advance

Goran
 
Are you sure you are using the right API?

It needs to be set in both the Manifest and in the project properties. (in Eclipse)


also

Welcome to the forums!
 
Back
Top Bottom