My Android app needs to get a configuration string from a server on each start.
I thought of creating a blank HTML page containing just this string. The app would then execute an http_get
request to get that string from the server.
Is there a more elegant and free solution? (I don't have a webserver and most free websites embed ads or headers/footers into the html).
I tried this solution:
URL txtUrl = new URL("https://sites.google.com/site/myName/myText.txt");
BufferedReader in = new BufferedReader(new InputStreamReader(txtUrl.openStream()));
String inputLine = in.readLine();
This works, but there is a 1-2 second delay.