I am trying to create a tic - tac - toe type of game where two androids can play with each other. I am trying to build this game using eclipse SDK and a servlet written in PHP (or I can use Java if needed). The diagram is attached ( http://www.scorechase.com/tictactoe.PNG ) which depicts one side of the data flow. Here is the problem
1] How do I identify the two emulators? 2] When the device 1 sends an "X" to the servlet, how do I push the message to device 2 so that the message gets populated on device 2.
I did this long back in J2ME where I used the push API to push the data after the devices registered a listener on the servlet. I am not sure how to achieve this in Android. Any ideas will be really helpful.
Thanks!