title: Issue with JSONArray parsing
body: <p>I'm newbye in android world and I'm trying to retrieve a JSONArray from this URL: <a href="http://www.softmarketing.it/json/view/azienda/7" rel="nofollow">http://www.softmarketing.it/json/view/azienda/7</a></p>
  
  <p>TabHostExample.java:</p>
  
  <pre><code>public class TabHostExample extends TabActivity {
  
  private static String url = "http://www.softmarketing.it/json/view/azienda/7";
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_tab_host_example);
  
      //JSONParser parser= new JSONParser();
      //JSONObject myJSON= parser.makeHttpRequest(url, "POST", null);
      try{
          // Create a new HTTP Client
          DefaultHttpClient defaultClient = new DefaultHttpClient();
          // Setup the get request
          HttpGet httpGetRequest = new HttpGet("http://www.softmarketing.it/json/view/azienda/7");
  
          // Execute the request in the client
          HttpResponse httpResponse = defaultClient.execute(httpGetRequest);
          // Grab the response
          BufferedReader reader = new BufferedReader(new InputStreamReader(httpResponse.getEntity().getContent(), "UTF-8"));
          String json = reader.readLine();
  
          // Instantiate a JSON object from the request response
          JSONObject jsonObject = new JSONObject(json);
  
      } catch(Exception e){
          // In your production code handle any errors and catch the individual exceptions
          e.printStackTrace();
      }
  
             .....
  </code></pre>
  
  <p>In the LogCat I see this:</p>
  
  <pre><code>12-16 08:14:41.987: E/MYAPP(1183): exception: null
  12-16 08:21:34.927: E/MYAPP(1245): exception: null
  </code></pre>
  
  <p>and the variable e has these values:</p>
  
  <p>e:
  cause: <strong>NetworkOnMainThreadEception</strong></p>
  
  <p>and others values...</p>
  
  <p>Could you help me please? It's been three days that I'm trying to solve the parsing...Thanks </p>