Android:HttpClient does not run in Android 4.0 API
<p>I have written the code it works on Android 2.2 API but it does not work on Android 4.0</p>

<pre><code> String url = textUrl.getText().toString();
     HttpClient client = new DefaultHttpClient();
     HttpGet  request = new HttpGet(url);
     try
     {
        HttpResponse response = client.execute(request);
        textResult.setText(HttpHelper.request(response));
     }
     catch (Exception e) {
        // TODO: handle exception
         textResult.setText("Failed");
    }
</code></pre>
