Send data from android to server via JSON

前端 未结 4 1200
陌清茗
陌清茗 2020-11-30 08:35
  1. I have MySQL database server
  2. I need to update and retrieve data to/from MySQL server via JSON

So, I want to know how to do that, and I pretty

4条回答
  •  鱼传尺愫
    2020-11-30 08:58

    You can do it by using JDBC. I did an application that talked with MYSQL using JDBC standard API. Please bear in mind that not all connectors works, the only one I know is mysql-connector-java-3.0.17-ga-bin.jar.

    You'll need to implement a pool of connections to speed up query response times cause JDBC put a little overhead to Android when building a connection to server, it takes 2 to 3 seconds to start but once connected works very fast.

提交回复
热议问题