使用HTTP&创建即时消息JSON

时间:2012-07-03 07:57:47

标签: android json http instant-messaging

任何人都可以指导我或提供链接,以便我可以继续前进。我如何在应用程序中进行即时消息传递。我想从一台设备发送消息给服务器&从服务器我应该使用HTTP以JSON格式返回其他设备。我经历了很多网站但是得到了正确的想法。所以如果你知道请给我一些想法。

非常感谢..

1 个答案:

答案 0 :(得分:1)

获得了IM应用..

step 1 : Send the msg to server as a json object to server.
step 2 : keep running response thread for every seconds.
step 3 : Server sends the msg to requested user as a json object.
step 4 : server takes the msg from requested user and sends back as a response. which is running on other thread.