if (arg0.result.length() > 4000) {    Log.e("======", "sb.length = " + arg0.result.length());    int chunkCount = arg0.result.length() / 4000;     // integer division    for (int i = 0; i <= chunkCount; i++) {        int max = 4000 * (i + 1);        if (max >= arg0.result.length()) {            Log.e("======", "chunk " + i + " of " + chunkCount + ":"+ arg0.result.substring(4000 * i));        } else {            Log.e("======", "chunk " + i + " of " + chunkCount + ":" + arg0.result.substring(4000 * i, max));        }    }} else {    Log.e("======", arg0.result.toString());}


 

if (responseInfo.result.length() > 4000) {    Log.e("======", "sb.length = " + responseInfo.result.length());    int chunkCount = responseInfo.result.length() / 4000;     // integer division    for (int i = 0; i <= chunkCount; i++) {        int max = 4000 * (i + 1);        if (max >= responseInfo.result.length()) {            Log.e("======", "chunk " + i + " of " + chunkCount + ":"+ responseInfo.result.substring(4000 * i));        } else {            Log.e("======", "chunk " + i + " of " + chunkCount + ":" + responseInfo.result.substring(4000 * i, max));        }    }} else {    Log.e("======", responseInfo.result.toString());}

转:https://sanwen8.cn/p/21eJMO1.html

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android(安卓)Camera 的架构简单简析1
  2. Android电源管理简介(下)
  3. Delphi xe7 FireMonkey / Mobile (Androi
  4. Android Bitmap详细介绍
  5. Android Design Support Library概览
  6. 探探Android
  7. Android 安全 —— 本地拒绝服务漏洞
  8. Android 虚拟键盘弹出把底部view顶上去的
  9. Android SDK 安装过程 与 安装失败的处理
  10. Android无法真正睡眠:服务广播插件等仍激