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

static public void i(String s) {
    if (INFO_STATHI == true)
        Log.i(TAG, s);
}

From source file:Main.java

public static String isFileDownloaded(String filename, int contentlen) {

    Log.i(tag, "filename:" + filename);
    Log.i(tag, "len:" + contentlen);
    File f = new File(filename);

    if (!f.exists()) {
        return "init";
    }//w w  w.  j a va 2  s . c om
    Log.i(tag, "f.length():" + f.length());

    if (f.length() < contentlen) {
        return "downloading";
    }

    if (f.length() == contentlen) {
        return "finished";
    }

    return "error";

}

From source file:Main.java

public static void addLogi(String message) {
    if (DEBUG_FLG) {
        Log.i(TAG, message);
    }
}

From source file:Main.java

private static void LoggerInfo(String info) {
    if (DEBUG) {
        Log.i(TAG, info);
    }
}

From source file:Main.java

/**
 * Log any debug info over here. To keep consistancy, this function was
 * developed// ww w  . j  a v a2  s . c  o m
 * 
 * @param message
 */
public static void LogInfo(String message) {
    Log.i("MFOODX", "MFOODX -- >" + message);
}

From source file:Main.java

public static void i(Object logStr) {
    Log.i(TAG, defaultPreStr + logStr);
}

From source file:Main.java

public static boolean isFastDoubleClick(int maxTime) {
    long time = System.currentTimeMillis();
    long timeD = time - lastClickTime;
    Log.i("timetest", "time:" + time + ",timeD:" + timeD);
    lastClickTime = time;/*  w w  w  .j  a  v  a2s . c o m*/
    if (0 < timeD && timeD < maxTime) {
        return true;
    }
    return false;
}

From source file:Main.java

private static long calcBitmapSize(int width, int height, int sample) {
    long value = ((width / sample) * (height / sample) * 4) / 1024;
    Log.i(TAG, "calcBitmapSize, size = " + value);
    return value;
}

From source file:Main.java

/**
 * Write message to the info log//  w w  w  . j  a  va2  s. com
 * 
 * @param TAG
 * @param message
 */
public static void info(String TAG, String message) {
    Log.i(TAG, message);
}

From source file:Main.java

public static void i(String tag, String msg) {
    if (DEBUG) {//w w w.  j  a  v  a2  s  . c o  m
        if (msg != null) {
            Log.i(tag, msg);
        }
    }

}