Example usage for android.util Log d

List of usage examples for android.util Log d

Introduction

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

Prototype

public static int d(String tag, String msg) 

Source Link

Document

Send a #DEBUG log message.

Usage

From source file:Main.java

public static void debugLsDir(String dir) {
    File directory = new File(dir);
    Log.d("quran_dbg", directory.getAbsolutePath());

    if (directory.isDirectory()) {
        String[] children = directory.list();
        for (String s : children)
            debugLsDir(dir + File.separator + s);
    }/*from   ww w .  ja  v  a2  s  .  c o m*/
}

From source file:Main.java

public static void DebugDb(String message) {
    if (DEBUG_DB) {
        Log.d("DEBUG_DB", message);
    }
}

From source file:Main.java

public static String NameDefaultValue(String srcStr, String defaultValue) {
    Log.d(TAG, "-------------NameDefaultValue----------" + srcStr + "//////---" + defaultValue);
    return (srcStr == null || "".equals(srcStr)) ? defaultValue : srcStr;
}

From source file:Main.java

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

From source file:Main.java

public static void d(String tag, String message) {
    if (DEBUG) {
        Log.d(tag, message);
    }
}

From source file:Main.java

public static void method_end() {
    Throwable t = new Throwable();
    StackTraceElement e = t.getStackTrace()[2];
    Log.d(e.getClassName(), e.getMethodName() + ": end");
}

From source file:Main.java

public static void log(Object obj) {
    Log.d(TAG, obj.toString());
}

From source file:Main.java

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

From source file:Main.java

public static void method_start() {
    Throwable t = new Throwable();
    StackTraceElement e = t.getStackTrace()[2];
    Log.d(e.getClassName(), e.getMethodName() + ": start");
}

From source file:Main.java

public static boolean isAfterADay(Calendar newCalendar, Calendar oldCalendar) {
    Log.d("TEST", "run isAferDay");
    if (newCalendar.get(Calendar.YEAR) > oldCalendar.get(Calendar.YEAR))
        return true;
    if (newCalendar.get(Calendar.YEAR) == oldCalendar.get(Calendar.YEAR)
            && newCalendar.get(Calendar.MONTH) > oldCalendar.get(Calendar.MONTH))
        return true;
    if (newCalendar.get(Calendar.YEAR) == oldCalendar.get(Calendar.YEAR)
            && newCalendar.get(Calendar.MONTH) == oldCalendar.get(Calendar.MONTH)
            && newCalendar.get(Calendar.DAY_OF_MONTH) > oldCalendar.get(Calendar.DAY_OF_MONTH))
        return true;
    return false;
}