..java.lang.IllegalStateException: Content has been consumed... 这个错误是由于
resEntity 这个只能访问一次,重复访问就出现那个问题了哦,
参考网址:http://stackoverflow.com/questions/4727114/illegalstateexception-content-has-been-consumed
final JSONObject jObject = new JSONObject(EntityUtils.toString(resEntity));
you have consumed content and again you are using the same at here:
Log.e("XXX",EntityUtils.toString(resEntity));
That why it is causing IllegalStateException: Content has been consumed
So the solution is here:
String _response=EntityUtils.toString(resEntity); // content will be consume only once
final JSONObject jObject=new JSONObject(_response);
Log.e("XXX",_response);