Tuesday, August 23, 2011

[android-developers] Re: NdefPushClient.java, NdefPushProtocol.java, NdefPushServer.java

a good entry point is the StickyNotes application presented at
GoogleIO:
http://nfc.android.com/
This application exchanges text notes between NFC-enabled Android
devices using NdefPush. You see there both how the client and the
server are implemented.
The server enables NDEF-Push using enableForegroundNdefPush in
onResume and disables it in onPause using disableForegroundNdefPush.

For the client it is as if a tag was detected. This application
controls the intent dispatching using enableForegroundDispatch.

Communication between a device and a reader is more complicated, as
you need an implementation of the ndef protocol. I do not know of a
source where such a solution is published.

Dominik

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment