开发者

connecting PHP webservices with Android

开发者 https://www.devze.com 2022-12-19 00:50 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消