如何使用本地MySQL数据库构建Android应用程序? [英] How can I build a Android app with local MySQL database?
问题描述
我想用MySQL构建一个本地数据库android应用.我可以那样做吗?用户是否需要在手机中安装MySQL服务器才能运行该应用程序?有什么特别的事情要做吗?谢谢.
I would like to build a local database android app with MySQL. Can I do that? Does the user need MySQL server installed in their phone to run the app? Is there any special stuff to do? Thanks.
推荐答案
我认为您无法在手机中安装MYSQL.您必须按照上述@Fahad Alkami的说明连接到远程服务器/数据库.
I don't think you can install MYSQL in phone. You have to connect to the remote server/database as told by @Fahad Alkami above.
您必须使用预先安装在Android手机中的sqlite,并且可以轻松使用ORM,例如 greenDAO ,糖等.您也可以使用
You have to use sqlite which is pre-installed in android phone and you can use ORMs for easy like greenDAO, sugar, etc. Also you can use realm, if you would like to use other than sqlite.
这篇关于如何使用本地MySQL数据库构建Android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!