Android 安卓网络服务教程

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10588311/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 04:15:35  来源:igfitidea点击:

Android Web Service Tutorial

androidweb-services

提问by

Looking for a good tutorial that can walk me through creating a web service application in Android. I have had difficulty finding something that is beneficial. Most of the web services I have seen are no longer existing.

寻找一个很好的教程,可以指导我在 Android 中创建 Web 服务应用程序。我很难找到有益的东西。我见过的大多数 Web 服务都不再存在。

I am looking for something relatively simple.

我正在寻找相对简单的东西。

I found the solution on this site:

我在这个网站上找到了解决方案:

java.dzone.com/articles/invoke-webservices-android

java.dzone.com/articles/invoke-webservices-android

If you use this : Add the external jar file for the KSOAP2 Library, Go to order and export tab and check the box next to the jar file. and Finally go to project tab and hit clean. if this doesn't work for you I will try to help walk you through. It worked for me!!

如果您使用它:为 KSOAP2 库添加外部 jar 文件,转到 order and export 选项卡并选中 jar 文件旁边的框。最后转到项目选项卡并点击干净。如果这对您不起作用,我会尽力帮助您完成。它对我有用!!

回答by Gophermofur

The best web service tutorial I've seen, in terms of explanation and completness is here: http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/

我见过的最好的网络服务教程,就解释和完整性而言,在这里:http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite /

It outlines how to create and use a PHP based web service utilizing JSON as a message format. It includes code from all the layers (Android, PHP, MySQL)

它概述了如何使用 JSON 作为消息格式创建和使用基于 PHP 的 Web 服务。它包括来自所有层(Android、PHP、MySQL)的代码