You may want to use MDP messaging and Restful web services to
communicate.
The following links may help:

Java Pattern Oriented Framework, An application of the Messaging
Design Pattern
IBM Technical Library
http://www.ibm.com/developerworks/webservices/library/ws-designpattern/index.html

Messaging Design Pattern and a distributed Component/Service Model
https://jt.dev.java.net/files/documents/5553/149793/MDPdistributedModel.pdf

This should give a reliable communication mechanisms (MDP Restful Web
Service).
I have this running on my phone without any problem.

BTW, I believe the distribution also includes a Reliable File Transfer
System
based on MDP Restful web services. It might be a good example to look
at.

With MDP, You can also use other protocols/technologies as well
(sockets for instance).
Perhaps I would recommend Restful Web services (without knowing all
your requirements).

I hope this helps.

On Nov 11, 1:55 pm, manorit <[email protected]> wrote:
> Hi:
> I am developing a multiplayer game on android. I am having a Java
> server and android client.
> The android client issues multiple requests and receives responses
> from the server.
> However the performance is not smooth.
> At times the data received at the Java server is not what I send from
> android. It is junk or zeroes.
> However, some times, data is correctly received.
>
> I was wondering is there any data loss in betwenn and why? I am using
> java.net on both ends.
> Please let me know if anybody was facing a similar problem anytime
> during android development.
>
> Thanks,
> manorit

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to