connecting PHP webservices with Android

后端 未结 4 1718
轮回少年
轮回少年 2021-02-11 08:55

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.

相关标签:
4条回答
  • 2021-02-11 09:07

    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.

    0 讨论(0)
  • 2021-02-11 09:11

    the simpliest way is to use Sockets. :) if there are rest service you can use internal apache library - DefaultClient...

    0 讨论(0)
  • 2021-02-11 09:18

    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 讨论(0)
  • 2021-02-11 09:31

    Hi I made a tutorial about this you can download the sample as well

    Part 1 Part 2

    0 讨论(0)
提交回复
热议问题