get json from HttpResponse

get json from HttpResponse

HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(“http://my.server:8080/android/service.php”);

List nameValuePairs = new ArrayList(2);
nameValuePairs.add(new BasicNameValuePair(“action”, “getjson”));
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));

HttpResponse response = httpclient.execute(httppost);

service.php generates a json string. How would i fetch it from … Read more