I am very new to android. I am developing an application in android 2.2 that sends the some bytes to server via socket connection.
In server side they used simple java coding for server socket implementation. The sending data in socket connection is success.
But my problem is when send the data in socket connection then I close the connection in client side (that is in mobile side). But in server side it does not closed.
Then again the client try to send data to server via socket. So the client side (in android mobile) application is hanged.
socket=new Socket(this.ipAddress,this.port_number);
The above coding snippet hangs the client system. How to show the error screen in the client side without hanging client application.
All are welcome to give your ideas
I got the solution,The following are the steps,codings,etc.