So let's assume I have an Android app and I want to connect it to my PC database but let say my device is somewhere else over different network then how do I connect my app to my database. I want my database to be accessed from different places. How do I achieve it. Do I need to use web service for it? Or I have to host my server somewhere online so that my app can access it? Any help would be appreciated
Asked
Active
Viewed 39 times
0
-
See: [JDBC vs Web Service for Android](https://stackoverflow.com/q/15853367/295004) – Morrison Chang Sep 11 '20 at 04:14
-
@MorrisonChang Sorry, but I still don't understand I want my database to be accessed from anywhere Like if my database is in my computer in my home and if I am not in my home then how my app is going to access that database – jayesh jain Sep 11 '20 at 04:33
-
You can setup a home server, but that would depending on your how your home network is setup (firewalls & ISP). Do look at the free tier of various cloud service providers. – Morrison Chang Sep 11 '20 at 04:43
-
@MorrisonChang so what is better solution host it online or making home server like only 2-3 devices will be accessing that database – jayesh jain Sep 11 '20 at 04:48