I have a simple Java client application (Android app). I have to write a PHP server application which receives a request from the Java client application to write some data
You should build a simple JSON or XML based REST web service with PHP.
Then with the Android SDK, you can use the HttpClient module to connect to your web service. The SDK also provide a JSON and XML module to parse the result.