Android + MySQL using com.mysql.jdbc.Driver

后端 未结 4 2164
無奈伤痛
無奈伤痛 2020-12-02 02:13

I am writing an Android application that will connect to a MySQL server. For now, I am testing the MySQL server on my computer through XAMPP using http://localhost:3306/. T

4条回答
  •  温柔的废话
    2020-12-02 03:19

    Have you tried looking at ContentProviders? http://developer.android.com/guide/topics/providers/content-providers.html

    You will probably have more luck accessing data through an implementation of that (SQLite database for example) than accessing MySQL directly.

提交回复
热议问题