开发者

How to communicate between server and android?

Which is better way to send messages from server (Java) to android cl开发者_高级运维ient? Comet, socket, xmpp or something else? I'm going to develop simple client-server game.


Android Cloud to Device Messaging might work for your needs if you are sending lightweight messages to the device where timing isn't so important. If you need a long-lived connection for transmitting game data then you probably want to use Java sockets in the java.net package.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜