top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Android: How to send data (a string value) to another device using NFC?

+2 votes
464 views
Android: How to send data (a string value) to another device using NFC?
posted Aug 25, 2016 by Akshay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

You can start by referring code here.

First, you need permission for NFC. Then you have to add tech-list (frequencies of NFC).

Then, the below line can receive the Nfc adapter data.

Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);

Hope this helps!

answer Aug 26, 2016 by Vinod Kumar K V
Similar Questions
+1 vote

I wanted to understand NFC architecture in AOSP code. Primarily a block diagram interaction between NFC hardware with Nfc application in /packages/Nfc over JNI. I can see that the JNI portion of Nfc app is trying to connect via some socket.

Not able to find out the other side of this socket connection. I will really appreciate if someone can point me to any document or blog.

+2 votes

Not a technology question rather opinions about impact of LTE on NFC technology. Looks that LTE is going to be a commercial success so it should have impact on NFC technology but dont know how and howmuch.

+2 votes

I want to open another application from my application. I know I should use Intent for that, but I am not sure how to use that.

...