Android应用程序和Web服务器 [英] Android app and Web server

查看:159
本文介绍了Android应用程序和Web服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个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是<一个href="http://stackoverflow.com/questions/13134019/http-post-method-passing-null-values-to-the-server/13134287#13134287">here.

Native code for android is here.

这篇关于Android应用程序和Web服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆