[android-developers] Nexus S,how to exchange ndef data via p2p.
Hi all:
I have some questions about android2.3 NFC of p2p.
1. i send the ndef data by the enableForegroundNdefPush(this,
mMessage)function in onResume,but how can i known that the mMessage is
send over,can i got the notification or Intent?
2. As i know,in p2p module there have two parts,the initiator
and the target.I think int the question one activity called
enableForegroundNdefPush(this, mMessage) , it's initiator ,am is think
right?
3. If in question tow i'm right,the target(another Nexus S
phone,or a nfc reader in my desktop) received the ndef data
mMessage,and send a response to initiator,how can i got the ndef
response.
4. In target terminal such as another Nexus s phone,how can i get
the p2p inittiator pushed ndef data.
Ndef myTag=Ndef.get(tag);
myTag.connect();
if (myTag.isConnected())
{
myTag.getNdefMessage();
}
Thanks for any hints.
Tommy
--
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home