@@ -0,0 +1,1932 @@
+package com.example.root.downloadingwebcontent;%0A%0Aimport android.os.AsyncTask;%0Aimport android.support.v7.app.AppCompatActivity;%0Aimport android.os.Bundle;%0Aimport android.util.Log;%0A%0Aimport java.io.InputStream;%0Aimport java.io.InputStreamReader;%0Aimport java.net.HttpURLConnection;%0Aimport java.net.URL;%0Aimport java.util.concurrent.ExecutionException;%0A%0Apublic class MainActivity extends AppCompatActivity %7B%0A%0A//manifest: %3Cuses-permission android:name=%22android.permission.INTERNET%22 /%3E%0A%0A    public class DownloadTask extends AsyncTask%3CString, Void, String%3E%7B%0A%0A        @Override%0A        protected String doInBackground(String... urls) %7B%0A%0A            String result =%22%22;%0A            URL url;%0A            HttpURLConnection urlConnection;%0A%0A            try %7B%0A%0A                url = new URL(urls%5B0%5D);%0A                urlConnection = (HttpURLConnection)url.openConnection();%0A%0A                InputStream in = urlConnection.getInputStream();%0A%0A                InputStreamReader reader = new InputStreamReader(in);%0A%0A                int data = reader.read();%0A%0A                while (data != -1)%7B%0A%0A                    char current = (char) data;%0A%0A                    result += current;%0A%0A                    data = reader.read();%0A                %7D%0A%0A                return result;%0A%0A            %7D catch (Exception e)%7B%0A%0A                e.printStackTrace();%0A%0A                return %22Failed%22;%0A            %7D%0A%0A        %7D%0A    %7D%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.activity_main);%0A%0A        DownloadTask task = new DownloadTask();%0A        String result = null;%0A        try %7B%0A            result = task.execute(%22https://www.ecowebhosting.co.uk/%22).get();%0A        %7D catch (InterruptedException e) %7B%0A            e.printStackTrace();%0A        %7D catch (ExecutionException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A        Log.i(%22Contents%22, result);%0A    %7D%0A%7D%0A

Create Dowload web page java file