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

Android NFC not opening correct class on tap

I have an app with 2 classes, I need my app to open the second class CardActivity when the NFC tag tapped/swiped. The app opens fine, but MainActivity is run, instead of CardActivity. I would hazard a guess that this is an issue with my manifest,…
Mike
  • 8,767
  • 8
  • 49
  • 103
0
votes
1 answer

Use ActivityInstrumentationTestCase2 to test Android apps by passing Input data (NDEF msgs) with Intent

For a long time, I was able to solve my problems by reading many different posts here on StackOverflow, but now my problem gets quite interesting. I am stuck and maybe someone can give me some hints: I would like to test Android applications using…
norwied
  • 1
  • 2
0
votes
3 answers

Trouble reading NFC's - Android

I'm trying to do a simple application that reads Tags NFC with URL and writes the URL in a TextView. I tried to run it but didn't work. Someone can help me with that? The code is bellow and the AndroidManifest too! I hope you can help me. …
Rita
  • 1
  • 1
  • 3
0
votes
1 answer

how to bi-transmitted between two Android NFC phones?

How can I implement NDEF can be bi-transmitted between two Android phones? I mean one phone send, the other phone receive and response back immediately and interactively. How to achieve that in two Android phones? I need NFC phone like a chat mode.…
fordiy
  • 264
  • 5
  • 10
0
votes
1 answer

How to write NDEF record across multiple blocks with MIFARE 1k classic?

I writing an application in C# that writes a NDEF record to a MIFARE 1k tag. Im using the ACR122 contactless card reader to send APDU commands. The record that I want to write is URI type, and it needs to be long, so thats where my problem…
Israel Silva
  • 1
  • 1
  • 1
0
votes
1 answer

Android NFC still weak of API on 4.0.3

I found many weak points of Android NFC: ndef.connect() cannot work for NFC phone itself, only for tag. It's no way to check the connection status when other phone close to the back. NDEF cannot interactively send/receive in two way. On the…
fordiy
  • 264
  • 5
  • 10
0
votes
2 answers

NFC tag isn't opening app in Android 4.1 Jelly Bean

I'm working on an android app that uses NFC to open an activity. So we wrote a NFC tag with specific MIME-Type, like in the API example, so only my app can open the data in it. It was working just fine on Android 2.3.3 to Android 4.0.4. Now, after…
Ohadza
  • 159
  • 1
  • 3
  • 8
0
votes
1 answer

FormatException when Creating NdefMessage

I mistook my original question as one of conversion, when it's one of a FormatException. I'm trying to write an NFC tag based upon an EditText input. Relevant code below: EditText msgInput = (EditText) findViewById(R.id.editText1); ... try { …
alextoombs
  • 33
  • 1
  • 7
0
votes
1 answer

ArrayIndexOutOfBoundsException occur

Here I am developing an adroid app which will read the records in the NFC tag. Here is the part of code in my program to read the tag, when it read, Out of bounds exception occurs. NdefMessage[] msgs = null; String action = intent.getAction(); …
Conrad
  • 933
  • 4
  • 19
  • 34
0
votes
2 answers

How can I write a Chinese Message into NDEF message by using Android's API?

Now,I have an Google Nexus,and Android 4.0.4 platform.how can I write a Chinese message into a NFC card,how do I write the NDEF message and read it?
shawpan
  • 44
  • 2
0
votes
1 answer

NFC sending wrong tag/records

My activity is implementing CreateNdefMessageCallback, OnNdefPushCompleteCallback I'm calling mNfcAdapter.setNdefPushMessageCallback(this, this); // Register callback to listen for message-sent success …
damian
  • 2,001
  • 20
  • 38
0
votes
1 answer

NFC Receive NDEF tags from Android 2.3.3

I have been developing an Android application which sends NDEF messages via Android Beam and a desktop application which receives them. Everything works as expected; however, I personally believe that the Android Beam "Tab to beam"-screen is too…
user970470
-1
votes
1 answer

How to transfer text from one phone to another via NFC in react-native?

I am making a react-native demo in which I want to transfer string data from one android/ios device to another android/ios device and use that string data. I have searched alot but did not found anything which is useful. Some of the article says…
Mayank
  • 11
  • 1
-1
votes
1 answer

Can I stay connected via NFC without any data transfer?

I wish to connect two android devices on NFC without any data transfer and stay connected as long as the devices are separated. I have been investigating ways but I cannot think of any way to make this possible. Please give advice if you have an…
Tracy
  • 1
  • 1
-1
votes
1 answer

Send formatted hex values through NFC

I try to send a specific string through NFC. The key of this app is that the string should be received by the TAG as hex values, not ASCII. So, this is the problem. The NdefMessage() format the string as hex, even if it is already hex. here is the…
Mihai Coman
  • 73
  • 1
  • 9
1 2 3
32
33