The one way is to follow the android documentation for sending GET requests and to use the Volley library with the following code:
// Instantiate the RequestQueue.
RequestQueue queue = Volley.newRequestQueue(this);
String pageContent = "";
String url ="http://www.dbg-filderstadt.de/fileadmin/dateien/Dokumente/w00000.htm";
// Request a string response from the provided URL.
StringRequest stringRequest = new StringRequest(Request.Method.GET, url,
new Response.Listener<String>() {
@Override
public void onResponse(String response) {
// Display the first 500 characters of the response string.
pageContent = response;
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
//do something
}
});
// Add the request to the RequestQueue.
queue.add(stringRequest);
In this case, when your request is successful (become response code 200 Ok from the server - no errors), the system runs a method called onResponse and you become a string (named response), which is exactly the content of the page you made request to. So you could save it to your variable and use it later (for example I called this variable pageContent).
I attach you a link to the android documentation, too : https://developer.android.com/training/volley/simple.html
Do not forget to add in your AndroidManifest.xml the permissions for requesting the net:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
and the following dependency for the Volley library to your build.gradle file : compile 'com.mcxiaoke.volley:library:1.0.+'