Search code examples
javaandroidandroid-networking

Android app need help connecting to a JAVA localhost server


I've had a look around and could not find what I'm looking for, so please feel free to redirect me.

I'm writing a card game that uses a Java server that stores the card information. I want to develop an Android app that connects to this server (via TCP/IP is my initial thought) and issues the commands i.e. pick up cards, play cards etc. (as the cards are stored in arraylists within the server app.)

My knowledge of Android is extremely limited and I cant find any good sources that could possibly help me, or explain how android networking works.


Solution

  • You need tcp server socket communication >

    http://developer.android.com/reference/java/net/Socket.html