How to implement communication between Java client application (Android) and PHP server application?

前端 未结 2 842
太阳男子
太阳男子 2020-12-15 13:28

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

2条回答
  •  情书的邮戳
    2020-12-15 14:06

    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.

提交回复
热议问题