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 {
    public static boolean DEBUG = true;
    private static String iTag = "";

    public static void i(String msg) {
        if (DEBUG) {
            Log.i(iTag, msg);
        }
    }

    public static void i(String msg, Throwable tr) {
        if (DEBUG) {
            Log.i(iTag, msg, tr);
        }
    }

    public static void i(String tag, String msg) {
        if (DEBUG) {
            Log.i(tag, msg);
        }
    }

    public static void i(String tag, String msg, Throwable tr) {
        if (DEBUG) {
            Log.i(tag, msg, tr);
        }
    }
}