English 中文(简体)
2. 两种或两种以上roid装置之间的阴道
原标题:wifi chat between two or more android devices

I want to develop an chat application to chat between two or more android devices using wifi network.The application should be able to send or receive strings from each other. I have an experience of using Bluetooth network between pc and android. Can any give me any suggestion or right direction. Thanks in advance.

最佳回答

You can be able to chat between two android devices in Android Version 4.0.There is an API called Wifi P2P .More information can be had from here:

rel=“nofollow” http://developer.android.com/vis/android/net/wifi/p2p/ Package-summary.html

问题回答

如果你想到的是同一个WiFi AP/router和下的连接装置,而没有设立任何服务器<>/strong>,那么我建议你考虑使用自APIC第1级以来已有的UDP多播种。

rel=“nofollow” http://developer.android.com/vis/java/net/MulticastSocket.html

UDP并不保证数据交付(可能丢失),因此,我将使用DP多射装置探测,并为需要保证交付的数据打开TCP的链接。 TCP倾听港口可以通过UDP多播种广告,使每个人都能在TCP之间相互连接。 (可能是第3级工具,对你来说,这一低水平是 st的。)

可在XMPP上帮助Google 谈论使用同一议定书。

The Extensible Messaging and Presence Protocol (XMPP) is an open technology for real-time communication, which powers a wide range of applications including instant messaging, presence, multi-party chat, voice and video calls, collaboration, lightweight middleware, content syndication, and generalized routing of XML data.

things you need to do:
1. you need a server computer to run XMPP server, there are lots of open source implementations.
2. you need a XMPP client running on your android device, there are also lots of open source implementations running on android platform.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...