I wrote an Android application and for development, I used the local XAMPP server. On the server side, I use mysql db and several php files containing requests. On the android side, I use HttpURLConnection, as shown below.
url = new URL(AppHelper.SERVER_URL + phpFile);
connection = (HttpURLConnection) url.openConnection();
connection.setDoOutput(true);
connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
connection.setRequestMethod("POST");
request = new OutputStreamWriter(connection.getOutputStream());
request.write(parameters);
request.flush();
request.close();
String line = "";
InputStreamReader isr = new InputStreamReader(connection.getInputStream());
BufferedReader reader = new BufferedReader(isr);
StringBuilder sb = new StringBuilder();
Now I am at a stage where I would like some friends to try the application, so I want to configure a hosted web server. Now I hope to get suggestions to be used so that I can save and recycle most of my code and files. Please note that I am very unfamiliar with this, therefore user friendliness is an important criterion. What are the preferred ways to migrate from a local server to a server solution?