title: reading JSON data from URL
body: <p>I am trying to parse some JSON data, but my app doesn't do anything because i can't seem to get any response from URL, i tried to open URL connection in few different ways, but it's still the same. for Example : </p>
  
  <pre><code>urlMy=new URL(string);
      URLConnection tc = urlMy.openConnection();
      BufferedReader in = new BufferedReader(new InputStreamReader(
              tc.getInputStream()));
      String line=in.readLine();
  </code></pre>
  
  <p>doesn't return anything, it even dismisses everything in my function written below that code. </p>
  
  <p>Or</p>
  
  <pre><code>    urlMy=new URL(examp);
  InputStream   inputStream = urlMy.openConnection().getInputStream();
  InputStreamReader reader = new InputStreamReader(inputStream);
  BufferedReader bR = new BufferedReader(reader);
  </code></pre>
  
  <p>the same thing. This function is called and like it never happend, every function after this one executes, so it's not in the endless loop, but every bit of code in this function after this example code is ignored. if i remove this code for reading url, everthing else works. </p>