Parsing JSON data to string in Android app
<p>i am coneccted with wi-fi, i use static ip, i can ping host from device ,in manifest i gave this permissions.
when on line <code>getResponse = client.execute(getRequest);</code> i get <code>java.net.SocketException: Permission denied</code>
please help me</p>

<pre><code>//String url = "http://192.168.10.207/WCFAPI/user.svc/Users/111/";
String url = "http://192.168.10.136:80/sil/testhandler.ashx";

HttpResponse getResponse=null;
HttpGet getRequest=null;
try {
    HttpClient  client = new DefaultHttpClient();
    getRequest = new HttpGet(url);
    getRequest.setHeader("Content-Type", "application/json; charset=utf-8");
    getResponse = client.execute(getRequest);
    final int statusCode = getResponse.getStatusLine().getStatusCode();
    if (statusCode != HttpStatus.SC_OK) {
        Log.w(getClass().getSimpleName(),"Error " + statusCode + " for URL " + url);
        return null;
    }
    HttpEntity getResponseEntity = getResponse.getEntity();
    return getResponseEntity.getContent();
    }
catch (Exception e) {
    getRequest.abort();
    Log.w(getClass().getSimpleName(), "Error for URL " + url, e);
    Toast.makeText(UserDetailEditActivity.this, e.getMessage(), Toast.LENGTH_LONG).show();
}
</code></pre>

<p><code>manifest</code></p>

<pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
&lt;uses-permission android:name="android.permission.CAMERA" /&gt;
&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
&lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;  
&lt;uses-feature android:name="android.hardware.camera"/&gt;
&lt;uses-feature android:name="android.hardware.camera.autofocus"/&gt;
&lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
&lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
&lt;uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" /&gt;
</code></pre>
