title: java.net.MalformedURLException: unknown protocol: view-source Exception problem
body: <p><strong>I'm trying to access an URL's content in android studio(java) but it gives &quot;java.net.MalformedURLException: unknown protocol: view-source&quot; exception! and i get result as failed.Please tell me how to Fix it!</strong></p>
  <pre><code>public class DownloadTask extends AsyncTask&lt;String, Void , String&gt;{
  
      @Override
      protected String doInBackground(String... urls) {
  
          String result=null;
          URL url;
          HttpURLConnection urlConnection=null;
          try {
              url=new URL(urls[0]);
              urlConnection= (HttpURLConnection) url.openConnection();
              InputStream in=urlConnection.getInputStream();
              InputStreamReader reader=new InputStreamReader(in);
              int data=  reader.read();
              while (data!=-1)
              {
                  char current= (char) data;
                  result= result+current;
                  data=reader.read();
  
              }
              return result;
          } catch (Exception e) {
              e.printStackTrace();
              System.out.println(e);
              return &quot;failed&quot;;
          }
  
      }
  </code></pre>
  <p>}</p>