[android-developers] Re: Sending data continuously over NFC in mode P2P

2011-04-26 Thread azahara
Hi Michael,

thanks for your answer. So that means Android 2.3.3 does not provide
the possibility to send many messages per connection established,
however internally it uses a more complex scheme to communicate in p2p
mode that is not available yet?.  Do you know if there exists any
alternative to accomplish the objective of sending data continuously
in p2p mode in only one tap?

thanks,

Azahara

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Sending data continuously over NFC in mode P2P

2011-04-15 Thread azahara
Hello,

I have an android application that is intended to send data over NFC
in p2p mode based on the API demo provided by Android. I have already
tested the program using two Nexus S (both with android 2.3.3). The
program runs well; however it is possible to send only one message per
device in one tap. That is, I cannot send more than one NdefMessage
per tap. The only way to continue the exchange of new NdefMessages is
to put the mobile phones away and tap then again (but again only one
message is possible to send for the current tap).

I am using the enableForegroundNdefPush() and
enableForegroundDispatch() functions provided by the API to send a
message, and disable the corresponding functions in the onPause()
state of the activity. Does anybody know why should I have to tap many
times the phones in order to send continuously data in p2p mode?.
This behavior corresponds to a feature of NFC, that only allows to
send one message per tap, or a problem concerned with the management
of the intent sent to the application when a NdefMessage is received
more than once?

Any clue, I will thank a lot.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en