Android HttpResponse content(body) to String

folder_openSnippets, Solutions
turned_in_notEntity, EntityUtils, Http, HttpResponse, webservice
comment4 Comments
Usually I use the following code to convert a Http response content to String:   BufferedReader in = new BufferedReader(new InputStreamReader(response.getEntity().getContent())); StringBuilder responseBuilder = new StringBuilder(); String line = ""; while ((line = in.readLine()) != null) { responseBuilder.append(line); } in.close(); Log.e("WS…
Read More
Exit mobile version