简体   繁体   中英

What's the best way to connect an Android App to MySQL?

I would like to write an Android App (with Android Studio) which uses a MySQL database.

What's the best way to implement it?

I have found on internet that I should write php files which send queries to the database. Then the php page return a JSON object which should be processed by the Android App (or something like that...).
Is this solution safe? Because I have to handle sensitive data like emails or GPS position.

Or else, are there other safe ways to let Android App connect to and retrieve information from the database?

您可以调用连接到服务器的Web服务,以及用nodejs或PHP或Java或Python或支持MySQL数据库的(连接器/库)任何其他编程语言编写的后端程序。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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