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.
精彩评论