1

Client Method Only Works Correctly On First Call

view story
linux-howto

http://stackoverflow.com – I have a method in a client that sends the string <PING> to the server when the server sends a <PING> message. The method is called parseMessage(String message). For some reason it only recognises it was sent a <PING> message the first time the server sends this message. I know the server is correctly sending the message because publishProgress() correctly appends it to arrayList and displayed to the screen. Can anyone please explain what is causing this behaviour? Here is the relevant code: public class connectTask extends AsyncTask<String,String,TCPClient> { @ (HowTos)