Simple TCP Socket Client Application

view full story

http://androidforums.com – I have currently created a simple tcp socket client application that sends and receives messages from a dotnet server application I have created. The application itself actually works however there are a few things I would like to know if they are possible or not. Also this is my first ever droid application and my first ever java application so I am sure there is a better way to do what I have written so please go easy on me. The problem that I am having is I need a way to monitor the status of the socket so that if the connection gets dropped whether it is from the server application end (General)