Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.util.Log;

public class Main {
    /**
     * Writes long strings to the logcat.
     *
     * @param str The string to write to the logcat.
     */
    public static void logLongStrings(String logTag, String str) {
        if (str.length() > 4000) {
            Log.d(logTag, str.substring(0, 4000));
            logLongStrings(logTag, str.substring(4000));
        } else {
            Log.d(logTag, str);
        }
    }
}