title: Get Content android error
body: <p>I encounter this error when I start the <code>get content</code></p>
  
  <blockquote>
    <p>at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:186)
    07-15 12:12:17.420: W/System.err(2368):     at java.net.URL.openStream(URL.java:470)
    07-15 12:12:17.420: W/System.err(2368):     at com.axcel.mp3tube.GetContentFiles.makeurl(GetContentFiles.java:25)
    07-15 12:12:17.420: W/System.err(2368):     at com.axcel.mp3tube.GetContentFiles$1.run(GetContentFiles.java:44)</p>
  </blockquote>
  
  <p>This is the method I'm using:
        package com.axcel.mp3tube;</p>
  
  <pre><code>import java.io.BufferedReader;
  
  import java.io.InputStreamReader;
    import java.net.URL;
    import java.util.Date;
  
  public class GetContentFiles {
  
  static long lDateTime = new Date().getTime();
  
  String strLong = Long.toString(lDateTime);
  
  static String hash;
  
  
  
  // Id do video
  public static String makeurl(String url) throws Exception {
  
      URL yahoo = new URL("http://www.youtube-mp3.org/a/itemInfo/?video_id="
              + url + "&amp;ac=www&amp;t=grp&amp;r=&amp;r=" + generatelengh(url + lDateTime));
      BufferedReader in = new BufferedReader(new InputStreamReader(
              yahoo.openStream()));
  
      String inputLine;
  
      String returna = null;
      while ((inputLine = in.readLine()) != null)
  
          returna = inputLine;
      in.close();
  
      return returna;
  }
  
  
  public static String ThreadOpen(final String video_id) {
      Thread thread = new Thread() {
          @Override
          public void run() {
              try {
                  hash = makeurl(video_id);
  
              } catch (Exception e) {
                  e.printStackTrace();
              }
          }
      };
      thread.start();
  
      return hash;
  
  }
  
  public static int generatelengh(String a) {
      int __AM = 65521;
      int c = 1, b = 0, d, e;
      for (e = 0; e &lt; a.length(); e++) {
          d = a.charAt(e);
          c = (c + d) % __AM;
          b = (b + c) % __AM;
      }
      return b &lt;&lt; 16 | c;
  }
  }
  </code></pre>
  
  <p>I usethis in my activity
  String hash = GetContentFiles.ThreadOpen(linkvideo2);</p>