Example usage for android.util Log i

List of usage examples for android.util Log i

Introduction

In this page you can find the example usage for android.util Log i.

Prototype

public static int i(String tag, String msg) 

Source Link

Document

Send an #INFO log message.

Usage

From source file:Main.java

public static void logInfo(String string) {
    if (DEBUG) {
        Log.i(TAG, string);
    }
}

From source file:Main.java

public static void i(String Tag, String message) {

    if (!isLog) {
        return;
    }
    Log.i(Tag, message);

}

From source file:Main.java

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

From source file:Main.java

public static void info(String msg) {
    if (isDebug) {
        Log.i(mTag, msg);
    }
}

From source file:Main.java

public static int dip2px(Context ctx, float dpValue) {
    final float density = ctx.getResources().getDisplayMetrics().density;
    Log.i("density", "density=" + density);
    return (int) (dpValue * density + 0.5f);
}

From source file:Main.java

public static void i(String msg) {
    if (IS_DEBUG) {
        Log.i(TAG, "-->" + msg);
    }
}

From source file:Main.java

public static String getServoControlMessage(int servo, int middleValue, int offset, double percent) {
    int value = middleValue + (int) (offset * percent / 100.0);
    Log.i("Message", value + "");
    return "servo set " + servo + " " + value + "\n";
}

From source file:Main.java

public static void i(String tag, String text) {
    if (debug) {
        Log.i(tag, text);
    }
}

From source file:Main.java

public static void releasePartialWakeLock() {
    if (wakeLock != null) {
        Log.i("DAVA", "wakeLock.release()");
        wakeLock.release();//from www  . ja  v a2s  .c  o m
    }
}

From source file:Main.java

public static void printCurrentStackTrace() {
    for (StackTraceElement ste : Thread.currentThread().getStackTrace()) {
        Log.i("DEBUG", ste.toString());
    }//from  w ww. j a v  a 2  s.c  om
}