Search code examples
androidandroid-c2dm

Android two player game to be played in internet


I have developed a simple two player chess game in android to be played using Bluetooth. I want to extend it by making it possible to be played through internet. whenever a player makes a move, the move should be transferred to the other player via internet.

How to make this possible?

I have heard of C2DM mechanism.Does that suites the scenario i described and is it reliable?

Thanks:)


Solution

  • Another option is to use some sort of IM as a communication medium for app. For eg. Use Asmack to connect to XMPP Im like GTalk. Prompt user to create an account there, for your game. And use it to send and receive commands via IM. This way you won't need to setup your mediating server.

    This works if user knows who he is playing with. To collect the user data and let them search for available players, you still need to setup a server. IRC chat room may be an option to avoid this also.

    • GTalk was just an example. You can use any IM or IRC also.