怎样使Android程序调用mysql数据库里面的数据
怪我咯
怪我咯 2017-04-17 11:39:07
0
5
632

我是新手刚接触Android开发,使用Eclipse。这几天在学习开发Android程序,但是遇到了问题就是说如何调用本地mysql数据库里面的数据,我现在甚至不知道该使用什么工具,什么语言,了解了一些,好像PHP和json可以用来做这个。

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(5)
伊谢尔伦

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

洪涛

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

伊谢尔伦

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.

小葫芦

Masters, where can I get the source code of this example program?

小葫芦

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template