}
@Override
- public void onResult(int responseCode, String responseMessage,
- InputStream inputStream) {
+ public void onResult(final int responseCode, final String responseMessage, final InputStream inputStream) {
if(responseCode!=200)
return;
try{
final JSONArray array;
{
- final byte[] buf=new byte[4096*1024];
- inputStream.read(buf);
- array=new JSONArray(new String(buf));
+ final byte[] buf=new byte[2048*1024];
+ final int length=inputStream.read(buf);
+ array=new JSONArray(new String(buf, 0, length));
}
for(int i=0;i<array.length();i++){