如何让Android应用程序与外部MySQL数据库进行通信应用程序、通信、数据库、Android

2023-09-06 04:15:34 作者:此生杀伐

我是如何得到数据进出从互联网Android应用程序真的很困惑。

I am really confused on how to get data in and out of an android app from the internet.

我以为我会信息存储在我已经设置了服务器上的MySQL数据库。但是从我读过,我需要某种类型的在中间的Web服务,使从应用程序发送的数据查询。

I imagined that I would store information in the mysql db on the server I already have set up. But from what I have read, I would need some type of in-between web service to make queries with data sent from the app.

有人能折腾我如何得到这样的事情开始的一些技巧。

Can anybody toss me some tips on how to get something like this started.

或者,如果你知道一个更好的方式,让我知道这件事。

Or, if you know of a better way, let me know about it.

推荐答案

这个问题已经被问了几次,比如此处的从MySQL服务器获取数据,Android应用程序。

This question has been asked several times, for example here: Get data to android app from mysql server.

底线 - 你不直接连接。您可以通过HTTP的东西在您的服务器(如REST风格的),您与连接。

Bottom line - you don't connect directly. You have something on your server (like RESTful) that you connect with via HTTP.