Reputation: 277
I am trying to build a desktop application and an android application for a small business. A database will need to be accessed from both applications and the android app will not be using the same network as the desktop. Can someone point me in the right direction towards a solution? Also, there will be very little traffic to the database. Any suggestions? I would like for the desktop application to be able to host a remote database, whereas the android application will simply connect to the desktop computer through a web service.
Thanks!
Upvotes: 1
Views: 2279
Reputation: 1072
You better host the database on a server. You can use a server side language like PHP or any language you prefer.
Android app will communicate with PHP/server side language. And server side language will process the data. Same goes for your desktop client.
You can follow this tutorial to setup Android:
How to connect Android with PHP, MySQL
It is not that much complex.
Upvotes: 3