I have developed a game on Android. Now I want to play it on wifi or 3G. I have game packets which I want to send form client (mobile) to server then to another client (mobile).
I don’t know how to write code in Java to send the playPackets continuously to server and receive the playPacket continuously from the server to the clients.
I guess I have to use two thread one for sending and one for receiving.
Can someone help me with the code, or the procedure to write code for it?