Yes I have a PHP Server and an android client.
The code starting from "Socket socket; ..... to Server.start()" works perfectly in plain java but when used in android application the BufferedWriter writes only first few character of the string to the output stream.