search

Home  >  Q&A  >  body text

怎样使Android程序调用mysql数据库里面的数据

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

怪我咯怪我咯2784 days ago641

reply all(5)I'll reply

  • 伊谢尔伦

    伊谢尔伦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

    reply
    0
  • PHP中文网

    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

    reply
    0
  • 伊谢尔伦

    伊谢尔伦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.

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 11:41:07

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

    reply
    0
  • 高洛峰

    高洛峰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

    reply
    0
  • Cancelreply