webservice

  1. Home
  2. chevron_right
  3. webservice

Android HttpResponse content(body) to String

turned_in_not, , , ,
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…
Menu