title: Uri problems
body: <p>So Im trying to create a url to use httpget on, to download the page source.
  But Im having problems every time I run the app it says i have an illegal character in the string/uri.
  Here's the code Ive tried.</p>
  
  <pre><code>String Search = "http://www.lala.com/";
  </code></pre>
  
  <p>also,</p>
  
  <pre><code>HttpGet request = new HttpGet("http://www.lala.com/");
  </code></pre>
  
  <p>and every time i try,</p>
  
  <pre><code>Uri search = new Uri("http://www.lala.com/");
  </code></pre>
  
  <p>I get "Cannot instantiate Uri".</p>
  
  <p>Im not really sure what im doing wrong, also this is the code to get the page source.</p>
  
  <pre><code>try
            {
              HttpClient client = new DefaultHttpClient();
              HttpGet request = new HttpGet("http://www.lala.com/");
              HttpResponse response = client.execute(request);
  
  
              InputStream in = response.getEntity().getContent();
              BufferedReader reader = new BufferedReader(new InputStreamReader(in));
              StringBuilder str = new StringBuilder();
              String line = null;
              while((line = reader.readLine()) != null)
              {
                  str.append(line);
              }
              in.close();
              html = str.toString();   
             }
             catch (IOException e1)
             {
  
             }
  </code></pre>
  
  <p>Thanks for the help! ~ Tanner.</p>
  
  <p>(lala.com is not the site I am using btw :P )</p>