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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

