JDBC vs Web Service for Android

前端 未结 4 1664
广开言路
广开言路 2020-11-22 01:27

Can someone answer on my dilemma which method to use for connecting Android device to mySQL or Postgresql?

I can do it in both ways without any erro

4条回答
  •  不要未来只要你来
    2020-11-22 01:58

    Another option would be to use a database sync tool like SymmetricDS.

    This would let you have say a Postgres database on your server, and a SQLite database on your tablet.

    SymmetricDS would synchronize the databases over HTTP, when a connection is available. You don't have to sync the whole db of course, just the relevant parts.

    (I am not affiliated with SymmetricDS)

提交回复
热议问题