I am facing OutofMemoryError exception, when I try to convert the json response to string
Here is the code I tried
HttpEntity entity = response.getEntity();
if(entity != null) {
contentAsString = EntityUtils.toString(entity); // error
}
I tried with volley and Retrofit Network libraries as well but facing the same issue. Pls suggest...