0

I'm working on a small MMO project that run on android, iOS, j2me, window phone. I already built a java server and a working android project. now i'm facing problems with the other platforms. Some of my common libraries (include by both client and server) written on java (1.6) cannot run on j2me ( maybe iOS and window phone neither).

Server <--->handled by common libraries<-----packet--->handled by common libraries---> client

So, how can I make the server working with all platform??

I'm just a junior programmer :)

4

1 回答 1

1

You can do the server return common formats responses, such as JSON and XML. Then each client can parse it and use it. Or you can communicate via sockets, but you won't be able to reuse much code, especially since iOS development uses Obj-C, Windows Phone uses C# and Android uses Java (which may be different from Java ME).

于 2013-03-04T04:43:11.457 回答