I am developing the android application. which is going to update the content from android to the web(php webservice). Can anyone give me the sample code for my reference.
This guide was useful to me in using Android as a REST client. It shows how to use the Android libraries, without external dependencies, to perform basic GET/POST, etc.
Definitely search around if you need more information. There's plenty of resources on the issue.