我是新手刚接触Android开发,使用Eclipse。这几天在学习开发Android程序,但是遇到了问题就是说如何调用本地mysql数据库里面的数据,我现在甚至不知道该使用什么工具,什么语言,了解了一些,好像PHP和json可以用来做这个。
伊谢尔伦2017-04-17 11:41:07
Use java, php or other programming languages to make a backend interface, and then the mobile client uses the http protocol to call the interface to obtain data. Generally, the data format obtained is json or xml. The database is operated in the background and has nothing to do with the client
PHP中文网2017-04-17 11:41:07
It feels like you are referring to the local SQLite database? Not all databases are called MySQL
To operate the local database, go directly to the official Android developer website and watch the official training
Of course, basic SQL knowledge is still required
伊谢尔伦2017-04-17 11:41:07
You need a server background program to interact with the database. The android program calls the background interface and sends data to the server, and the server then performs corresponding processing on the database.
Server-side programs can be written in Java EE.
高洛峰2017-04-17 11:41:07
It is recommended to read Huang Junshi's "Best Practices for Android and PHP Development", which talks about examples of background interaction between Android and PHP. It is a good introduction. You can also go to http://www.yl1001.com/group/238468 to ask this community. The group owner is a friend of mine, and the answers there are still very quick