title: FileNotFoundException while parsing json in android 4.0.4 but works in android 2.3.3
body: <p>I am trying to access the json that displays the contents of my android application. The FileNotFound exception is throwing in Android 4.0.4 but the json can be accessed in Android 2.3.3. The json can also be accessed from browser using the same url. What is wrong in the code ? Can anyone help me regarding this issue.  </p>
  
  <p>I am using the code below:</p>
  
  <pre><code>url = new URL("http://www.dynamiskdesign.se/ipromotionnew/json/148.json");
  
  HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();
  httpURLConnection.setRequestMethod("GET");
  httpURLConnection.setDoOutput(true);
  httpURLConnection.connect();
  
  InputStream input = httpURLConnection.getInputStream();
  
  if (input != null) {
      writer = new StringWriter();
      char[] buffer = new char[1024];
      Reader reader = new BufferedReader(new InputStreamReader(input, "UTF-8"));
      int n;
      while ((n = reader.read(buffer)) != -1) {
          writer.write(buffer, 0, n);
      }
      input.close();
  }
  
  String jsontext = writer.toString();
  </code></pre>