Here you can find the source of getStringResponseData(HttpResponse httpResponse)
public static String getStringResponseData(HttpResponse httpResponse) throws ParseException, IOException
//package com.java2s; import java.io.IOException; import org.apache.http.HttpResponse; import org.apache.http.util.EntityUtils; import android.net.ParseException; public class Main { public static String getStringResponseData(HttpResponse httpResponse) throws ParseException, IOException { if (httpResponse == null) { return "httpResponse is null!"; } else if (httpResponse.getEntity() == null) { return "httpResponse entity is null"; } else {/*w w w . j ava 2s. c o m*/ return EntityUtils.toString(httpResponse.getEntity(), "UTF-8"); } } }