Error while calling Web service in Android 4 and above
<p>I used the following code for calling the web service in android.</p>

<pre><code>if( requestType.equals( "GET" ) )
{
    try
    {
         // GET
        HttpGet request = new HttpGet( );       
        request.setURI( new URI( requestURL ) );        
        HttpResponse response = client.execute( request );      
        if( response == null )
        {
            Log.d( APP_NAME, "Get Response returned null" );
        }
        else
        {
            HttpEntity entity = response.getEntity( );
            String encoding = EntityUtils.getContentCharSet( entity );
            responseString = EntityUtils.toString( entity, encoding == null ? "UTF-8" : encoding );
        }
    }
    catch( Exception e )
    {
            Log.e( APP_NAME, "Error Get : " + e.getMessage( ) );
    }
}
</code></pre>

<p>This code is supporting upto 3.0. But not supporting in android version 4.0 and above.
Please do the needful. </p>
