客户端服务器消息应用程序 [英] Message Application for Client Server
问题描述
希望你们所有人都做得很好。
Hope you all are doing well.
我想创建一个像客户端之间传递消息(Android应用程序)和服务器(PHP)的应用程序。
I want to create an application like passing messages between Client(Android App) and Server(PHP).
有很多是客户端和一台服务器。在我的应用我想使下面的事情:
There is many Clients and one Server. In my app I want to make following things:
- 发送两个客户端之间的信息和图像
- 客户端可以发送消息或图像服务器。
- 服务器可以发送消息或图像,以特定的客户端
我觉得像我可以用POST请求发送消息,并使用JSON GET响应。
这是最完美的方式还是有你的任何建议?
Is that perfect way or is there any suggestion from you?
有没有一个可以帮助我做到这一点更加最好的方式任何图书馆或链接。
Is there any library or links available which can help me to do this more best way..
您的帮助将是AP preciated。
Your help would be appreciated.
推荐答案
-
发送两个客户端之间的信息和图像
Send messages and images between two clients
服务器可以发送消息或图像,以特定的客户端
Server can send messages or images to particular client
首先阅读: http://developer.android.com/google/gcm/ index.html的
JSON是一个不错的选择:你可以使用杰克逊或Googlegson反序列化
JSON is a good choice: You will be able to deserialize using Jackson or Googlegson.
使用一个REST架构,使您的服务器可以与其它设备(iPhone,Windows Phone的)
Use a Rest Architecture so that your server could be usable with another device(iphone,windows phone)
这篇关于客户端服务器消息应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!