I have to build an application where the requirement is that my clients will send data from their Android device and I have to save that data to a database.
I have done the part of coding that inserts data from Android emulator to my XAMPP database on localhost, now I have to implement the real thing.
How can I connect the devices where my application will be installed to the XAMPP database I have created so that the data they send can be inserted into it?
Best Answer
Presumably your android application sends a request to a web application. In this case it is localhost, but when you deploy it, localhost will be replaced by the name or IP of the server that has xampp installed. If only it were this simple. There are some other things to consider:
For what concerns the firewall, you must know how to fix this since you must get it up and running. The last two are a job for a systems administrator, not you. You need to know only to know what problems may arise, but you should not have to also know everything there is to know about security (consider liability for a moment).
Most importantly, try it before you try to install it. By that I mean, buy an android phone, install your application, and configure it to point to your server and see if it works. I can guarantee there will be problems. The trick is to start with the assumption that there will be problems, and it will make your life easier.
Hope that helps!