Android game networking?

Hey after finishing my first android game I am very curious in how android networking works. Does anyone have tutorials of how this works? btw I am very familiar of udp/tcp and I know I could have just googled this but I wanted to know if any of you guys had found any good tutorials to use

It works exactly the same, other than the additional APIs to check if the network is available (which you can find in any android networking tutorial), and generally needing to code defensively against the network potentially dropping out at any time. HTTP access more complex than going through java.net.URL is done through Apache HttpComponents (4.x)

well I’m curious too. When not using wifi you, you cant really do client/server, since you cannot open ports…

Im not sure if you have ever played the game Fun Run but in this game you can play multiplayer of 3g, so it is possible

You can’t be a server on 3g/4g, no. Usually you expect the android device to be a client, not a server, so it’s hardly a real problem. If clients need to contact each other, they just go through the server to do it.

So yeah, what you are saying is that the game developer always has to have a server running ?

That’s pretty much how it works, yes. If you want to host LAN games on mobile devices, you’ve always got wifi, you just need an AP.