Android Log i 的长日志

if (response.length() > 4000) {
    for (int i = 0; i < response.length(); i += 4000) {
        if (i + 4000 < response.length())
            Log.i(INFO, "提交订单:flag" + flag + "****" + response.substring(i,i+4000));
        else {
            Log.i(INFO, "提交订单:flag" + flag + "****" +  response.substring(i, response.length()));
        }
    }
} else {
    Log.i(INFO, "提交订单:flag" + flag + "****" +  response);
}

你可能感兴趣的:(android,蓝桥杯,webview)