How to set up a connection with remote database in android?

后端 未结 1 952

Can you please tell me how can I make a simple connection with remote db in android app? Basically, I want to save users names, emails etc. in a remote database and retrieve

相关标签:
1条回答
  • 2021-01-01 04:54

    I guess you could use common Java libraries to create a connection to a database. But you are working on a mobile device, this means that you have to work with constant connection interruptions etc. A database connection that is opened for a longer time can be difficult with this kind of network issues.

    I would suggest to have a simple (maybe REST based) web service that lets you provide the input to the db via a simple short lived http request.

    0 讨论(0)
提交回复
热议问题