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 Object parse(String msg, Class tClass) {
    try {//from   w w w  . j  a  v a  2 s.  co m
        Log.i("Class", msg);
        Gson gson = new Gson();
        Object obj = gson.fromJson(msg, tClass);
        return obj;
    } catch (Exception e) {

    }
    return null;
}

From source file:Main.java

public static void sleep(int sec) throws Exception {
    Log.i(TAG, String.format("Sleep %d second(s) forcibly.", sec));

    Thread.sleep(sec * 1000);/*  ww w.  j a v a2  s .  c  o  m*/
}

From source file:Main.java

public static void deletefile() {
    tmpfile.delete();
    Log.i("facetest", "delete success");
}

From source file:Main.java

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

From source file:Main.java

public static void LogSuccess(String TAG, String LOGMETHOD, String LOGBODY) {
    Log.i(TAG, LOGMETHOD + " Success ! " + LOGBODY);
}

From source file:Main.java

public static void log(String message) {
    if (isVerbose) {
        Log.i("MVPBind", message);
    }
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

static final void i(String mesg) {
    Log.i(LOG_TAG, mesg);
}

From source file:Main.java

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