Android -Xmpp
I had trouble testing xmpp, I created a simple app, txmpp based on the sample code XmppDataMessageSend and couldn’t get it to work. The ServiceConnection call back was never executed.
Turns out you need to run the emulator and go into Dev Tools/XMPP Settings and add a valid gmail account, then it works as expected, see here. This doesn’t seem to allow general peer to peer connections between apps and in particular seems to require all messages to go through a central service. Not what I was looking for:(
Here other people are looking at similar issues and Dan Morrill replies here that Xmpp isn’t intended for adhoc communication and suggests Blue tooth. Interesting that wifi isn’t mentioned?
As of today, Dec 21 here is a short list of <peer to peer> hits when searching the Android-developer list:
There was two pages worth.
Here was a question about getting the local IP address, someone wants to do RTP.