如何访问在线mysql数据库中的android?在线、数据库中、mysql、android

2023-09-05 11:03:08 作者:那片残留的余温╭

我已经创造了约餐馆的在线数据库,我需要通过我的Andr​​oid应用程序,所以我可以过滤后的显示数据的用户访问该数据库。我的应用程序并不需要更新数据库,但问题是如何连接到我的在线mysql数据库,并将其提供给用户?我已经看过关于这个网站以及对其他许多建议,我只是发现使用JSON解析器同时访问,但不如何做到这一点。

I have created an online database about the restaurants and I need to access this database through my android application so I can display the data to the users after filtering. My application does not need to update the database, but the problem is how to connect to my online mysql database and provide it to the users? I have looked on many suggestions on this site as well as on others, and I just found to use JSON parser while accessing but do not how to do it.

推荐答案

最好的办法是提供一个公共的API,例如用PHP,它提供了你的数据库的数据过滤,并显示为Android应用程序的需求管理。

The best solution is provide a public API, managed for example with PHP, which delivers your database data filtered and displayed as your Android application needs.