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
4
votes
1 answer

Android Kotlin - How to read NFC tag inside Activity

I found some recent posts here about reading NFC Tags with Android. The conclusion that I got is that to performing an NFC read action triggers a separated intent. What I want to achieve is that only my current activity is reading the NDEF message…
Tobias Alt
  • 101
  • 2
  • 11
4
votes
1 answer

Strange character when reading NFC tag

I am trying to read an NFC tag using Android. I'm a beekeeper and this is to ID my hives when I approach them. I have searched here but I am still having issues reading the tag. I want to read the text, but when it reads, there is a square-like…
kee01
  • 47
  • 4
4
votes
1 answer

Unable to filter on URL NDEF Android Intent

There are a ton of examples on SE on how to do this, but I can't seem to get it to work. What I want to do is when a tag with a dev.example.com is scanned, either my app is launched, if installed, or if not installed, just go to the URL in the…
Mike
  • 168
  • 11
4
votes
1 answer

Are NFC tags and NFC cards the same thing?

Are NFC tags and NFC cards the same thing? The Android documentation mentions both. "NFC tags" when reading simple tags, but then says "NFC card" in the HCE documentation. Can I assume these are the same?
Esper
  • 93
  • 1
  • 8
4
votes
1 answer

Writing NDEF data to NTAG216 tag using low-level NFC communication methods

I have implemented the code to interact with an NTAG216 by means of low-level communication methods (following NTAG212 Mifare Ultralight with Authentication and the datasheet of NTAG216). What I have achieved so far: Set password write protection…
phLamBy
  • 185
  • 2
  • 13
4
votes
1 answer

Configure MIFARE DESFire EV1 as NFC Forum Type 4 Tag for NDEF

I started my studies using NFC in Android. I can easily read and write in NDEF format. My problem is with MIFARE DESFire EV1, I have some factory cards and I understand that they do not conform to the NFC Forum type 4 Tag specification and,…
Jonny
  • 408
  • 4
  • 12
4
votes
1 answer

C# Read Ndef from Mifare Card (Windows)

I'm trying to make a c# class for writing/reading on a Mifare1K Card via PcSc-Sharp. I get the "ATR" Data, but i don't know how to make a Ndef message from it. I investigated also the Mifare-Library, but the samples seemed to be buggy (the sectors…
Daniel
  • 511
  • 10
  • 25
4
votes
1 answer

Write to NTAG216 after authenticating?

I am authenticating my tag using this piece of code nfcA.connect(); byte[] authResponse = nfcA.transceive(new byte[]{ (byte)0x1b, pwd[0], pwd[1], pwd[2], pwd[3] }); nfcA.close(); I checked the result of…
hehe
  • 1,294
  • 13
  • 26
4
votes
1 answer

Accessing card-emulation mode on USB-NFC-Reader

I have an Android tablet with Android 4.2. This tablet does not have NFC hardware. However I have an external USB reader: ACR 1252U, that came with an Android library. I have asked some general questions of my setup here. Now that it gets more…
Michael B
  • 1,660
  • 3
  • 28
  • 59
4
votes
2 answers

Android NFC: can I do bi-directional message exchange?

The Android NDEF Push Protocol Specification from Feb 2011 says: This allows for bi-directional NDEF exchange between NPP devices. Today is 2015, and I want a simple message exchange between two devices: Device 1 Device 2 "Hello" ---> …
18446744073709551615
  • 16,368
  • 4
  • 94
  • 127
4
votes
2 answers

NDEF Message with HCE Android

I wanna emulate a host card with the HCE feature from Android. For that I extend the service class HostApduService and overwrite following method: public byte[] processCommandApdu(byte[] commandApdu, Bundle extras) { if…
user3431818
  • 51
  • 2
  • 3
4
votes
1 answer

Is it possible to launch system/third party app using an NDEFLaunchApp record to get the URI and by using LaunchUriAsync without NFC Tags?

So I have spent the whole night looking like a zombie in the morning trying to figure out how the OS handles an NFC tap for an NDEFLaunchApp Record and I have known the following. I'm pretty sure that there is a workaround which lets you launch a…
user1705923
4
votes
1 answer

NFC - Communication between devices in read/write

I know NFC Read/Write mode was designed for communication between an NFC reader or active device and an NFC tag or passive device. But there is a way for two NFC active devices to talk to each other being both in the NFC Read/Write mode?
davide.web
  • 95
  • 7
4
votes
2 answers

Read NFC tag without specific application?

I was wondering if there is any way to save a string of text (URL) to an NFC tag, let us say MIFARE or NTAG203, that can be read by other devices (smartphones) without the need of any special tag reading application. I have tested several…
Mati Kowa
  • 69
  • 1
  • 2
  • 4
4
votes
2 answers

NFC and MIME TYPE case sensitive

I'm attempting just the basic version of NFC, but then I discovered that MIME TYPE is case sensitive. The package name for my app has one capital letter. Package name: com.example.Main_Activity
Mark Ismail
  • 700
  • 4
  • 9
  • 22
1 2
3
32 33