Questions tagged [ndef]

The NFC Data Exchange Format (NDEF) specification is a common data format for NFC Forum Devices and NFC Forum Tags.

NDEF is a lightweight, binary message format used in NFC for data exchange.

496 questions
7
votes
1 answer

How to interpret NDEF content on Mifare Classic 1K

I write a text to a Mifare Classic 1K tag using the NFC Tools app on my Android device (through the built-in NFC reader). This text is "moretto" (my last name). Then, I'm trying to read this text (NDEF format) using the NFC reader ACR1255U with the…
Lucas Moretto
  • 404
  • 1
  • 6
  • 18
7
votes
1 answer

Reading an NDEF message from an NFC tag from an Android application

I am trying to create an application using NFC and I just want to try and read an NFC tag and get the text message from the tag and place it into a TextView. I have code for it already, but nothing happens when I try to pair the phone with an NFC…
James Meade
  • 1,147
  • 5
  • 22
  • 46
6
votes
1 answer

How to write NDEF records to NFC tag?

How do I write NDEF message to NFC tag? Do I have to change manifest file? So far I have code to generate NDEF message: public NdefRecord createTextRecord(String payload, Locale locale, boolean encodeInUtf8) { byte[] langBytes =…
Camil
  • 97
  • 1
  • 8
6
votes
1 answer

Android NFC - ndef.writeNdefMessage() throws IOException and erases tag data

My app uses the foreground dispatch system to allow a user to tap their NFC tag in order to perform a read-then-write operation on the tag. It works nicely if the user taps their tag properly (i.e., they tap it in the correct place on the phone and…
ban-geoengineering
  • 18,324
  • 27
  • 171
  • 253
6
votes
2 answers

what is the relationship between NFC and NDEF

What exactly is the relationship between NFC and NDEF? Does any NFC device always have to have data in NDEF format? Or is it possible to have NFC but not NDEF (although I think vice versa is not possible is it?) ? What would an empty NFC card be…
user13267
  • 6,871
  • 28
  • 80
  • 138
6
votes
2 answers

How could you check if an android device supports SNEP or Android's Ndef Push Protocol?

You can find this inside Android documentation: For NDEF push to function properly the other NFC device must support either NFC Forum's SNEP (Simple Ndef Exchange Protocol), or Android's "com.android.npp" (Ndef Push Protocol). This was optional on…
George Pligoropoulos
  • 2,919
  • 3
  • 33
  • 65
5
votes
2 answers

NFC Tag becomes "corrupted" after writeNdefMessage interrupted I/O

We have an Android application that communicates with an NFC tag on a custom hardware device. The hardware device can also communicate and perform operations on the tag mounted to it. The Android application communicates with the NFC tag in two…
Orbit
  • 2,985
  • 9
  • 49
  • 106
5
votes
0 answers

Android HCE card emulation not calling processCommandApdu

I am trying to emulate an NDEF NFC tag but processCommandApdu is not being called. The service appears to start, I have tried a number of AID and nothing seems to work. I have also tried using PackageManager to start the HCE. Not sure what I am…
5
votes
2 answers

What are the possible reasons for NFC Service to become dead after some time?

We are using NFC tags as parking tickets for entry and exit. On each entry, the tag is written with some data and at the exit that data verifies the exit of the vehicle. After entry and exit of some vehicles, the NfcService becomes dead, and the…
5
votes
1 answer

IOException with Host based card emulation

I have been using HCE and have been facing an IOException on isoDep.connect(); on a specific Android reader device cr100 simcent. HCE works perfectly fine when I enable the reader mode in NFC with the below flags. public static int READER_FLAGS…
chossen-addict
  • 370
  • 1
  • 7
  • 31
5
votes
1 answer

How to pass Custom Object through NdefMessage

First question on stackoverflow. I tried to make it clear and up to standards. I am new with Android development and with NFC in particular. I am working on an application where you can create and join event, a little bit like on Facebook. I have a…
5
votes
1 answer

Android NFC passing single parameter when starting application

I would like to start an application using an NFC tag. I got that part working using an android application record (AAR) as described in Start Android application from NFC-tag with extra data or by using NDEF_DISCOVERED / TECH_DISCOVERED intent…
Stephen McCormick
  • 1,706
  • 22
  • 38
5
votes
1 answer

How does NDEF formatting map to the NFC tag structure

I have been looking for the differences between NDEF formatted and normal NFC tag. Let consider 1k Mifare classic tags. These have 16 sectors and 4 blocks each. Once you format a tag as NDEF, what "internal" changes occur on the tag? Or what sort of…
hellowahab
  • 2,445
  • 4
  • 21
  • 34
5
votes
2 answers

Android: How to make a NFC Tag Ready only for users and writable for me?

I have an app that design personalized tags that, when it is detected by an android phone, launches another app with some content. It all works fine and I know how to make a read only nfc Tag. The problem is, I would like to make a NFC Tag only…
WaitWhat
  • 83
  • 1
  • 1
  • 6
4
votes
0 answers

How to write NDEF in host card emulation in flutter (for android)

How do I write NDEF messages for host card emulation in flutter? I´m writing a wallet app for passes (for android) and I need it to have NFC functionality (I can't use google smart tap) The problem I´m having is that I tried to write with the…
ungali
  • 51
  • 1
1
2
3
32 33