简体   繁体   English

Web Service如何在Android中工作

[英]How does Web Service works in Android

I'm studying android and I have a question. 我正在研究android,并且有一个问题。 How to transfer data between app and client ? 如何在应用程序和客户端之间传输数据? which DBMS I can use ? 我可以使用哪个DBMS? and how to make my laptop become server ? 以及如何使我的笔记本电脑成为服务器? all of this I just want to practice. 我只想练习所有这些。 Thanks for all advice ! 感谢您的所有建议!

you need a server program which service requests via web services. 您需要一个通过Web服务提供服务请求的服务器程序。 So this is the server program which has access to DB and choosing DBMS does not depends on android app. 因此,这是可以访问数据库的服务器程序,选择DBMS并不取决于android应用。 when your server program reads data from DB, it'll send them to android app in JSON or XML format (most common formats). 当您的服务器程序从数据库读取数据时,它将以JSON或XML格式(最常见的格式)将其发送到android应用。 you can setup a local network in your laptop and connect you cell phone to that. 您可以在笔记本电脑中设置本地网络,然后将手机连接到该网络。 but for testing purpose you can use emulator in your laptop. 但出于测试目的,您可以在笔记本电脑中使用模拟器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM