connecting PHP webservices with Android
I am developing the an开发者_开发技巧droid 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.
There are lots of questions already on StackOverflow regarding calling webservices from Android. Try looking at those.
For example:
How to call a SOAP web service on Android
How can i call a web service without using KSOAP2 in Android?
FYI, there should be no difference between a PHP webservice and a webservice written in any other language from the client's (Android's) point of view.
Hi I made a tutorial about this you can download the sample as well
Part 1 Part 2
the simpliest way is to use Sockets
. :)
if there are rest service you can use internal apache library - DefaultClient
...
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.
精彩评论