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 WriteInfo(String text) {
    Log.i(LogTag, text);
}

From source file:Main.java

public static void log(String message) {
    //        _log(message);
    Log.i("JC-LOG", message);
}

From source file:Main.java

public static void logInfo(String info) {
    Log.i(KEY_LOG, info);
}

From source file:Main.java

public static void printString(String string) {
    Log.i(HEAD + "_xu_string", "printString: " + string);
}

From source file:Main.java

public static void limparMemoria() {
    System.gc();//from  w  w  w.  j av a  2s. c o  m
    Runtime.getRuntime().gc();

    Log.i("GC", "LIMPANDO MEMORIA ANDROID");
}

From source file:Main.java

public static String FormatBarCode(String barCode) {
    if (barCode.length() == 13) {
        Log.i("msg", "barcodeLength==13");
        char[] temp = barCode.toCharArray();
        return temp[0] + " " + temp[1] + temp[2] + temp[3] + temp[4] + temp[5] + temp[6] + " " + temp[7]
                + temp[8] + temp[9] + temp[10] + temp[11] + temp[12];
    }/*from   w ww.j  a  va 2s. co m*/
    Log.i("msg", "barcodeLength!=13");
    return barCode;
}

From source file:Main.java

public static void Logger(String exception) {
    Log.i(TAG, exception);
}

From source file:Main.java

public static void i(Context context, String msg) {
    try {/*from   w w w  .j ava2  s  . co m*/
        Log.i("" + context.getClass().getSimpleName(), msg);
    } catch (Exception e) {
        e.printStackTrace();
    }
}

From source file:Main.java

public static void info(String fmt, Object... args) {
    Log.i(TAG, fmt(fmt, args));
    //logger.info(fmt(fmt, args));
}

From source file:Main.java

static private void log(Exception e) {
    Log.i(TAG, Log.getStackTraceString(e));
}