Android应用程序和Web服务器应用程序、服务器、Android、Web

2023-09-04 07:11:58 作者:茉莉苦咖啡,

我有一个Android应用程序,需要与网络服务器进行通信。不过,我不知道如何做到这一点。我有一个Web服务器,虽然我不知道如何使用它(存储/检索数据)。 plz帮助我。任何提示,建议将工作对我来说。它是重要的。先谢谢了。

I have an Android app, that needs to communicate with a webserver. However, I have no idea of how to do this. I do have a webserver., though I do not know how to use it(store/retrieve data). plz help me . any tips, advices will work for me. It is important. Thanks in advance.

推荐答案

请参阅此仅做参考。在我刚传递两个变量Web服务和接收响应表格服务器根据条件。

See This is only for reference .in that i just passing two variable to web service and receive the response form server as per condition.

在服务器端我已经奶源 PHP 接受 POST 请求和响应的 JSON

At the server side i have mange PHP to accept POST request and response in JSON.

因此​​创造简单的PHP的Web服务。对,你会得到的想法形式 w3school 或任何其他网络资源。现在你阿贝尔做这个任务。

So create simple php web service. for that you will get idea form w3school or any other web resource . Now you are abel to do this task.

本机code为Android是here.

Native code for android is here.