Example usage for android.util Log e

List of usage examples for android.util Log e

Introduction

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

Prototype

public static int e(String tag, String msg) 

Source Link

Document

Send an #ERROR log message.

Usage

From source file:Main.java

public static void e(String paramString) {
    if (DEBUG)
        Log.e(TAG, paramString);
}

From source file:Main.java

public static boolean updateFile(String path, String filename) {
    File f = new File(path, filename);
    Log.e("x", f.getAbsolutePath());
    Log.e("x", "" + f.exists());
    long fileTime = f.lastModified();
    long curTime = System.currentTimeMillis();
    long fileAge = curTime - fileTime;

    Log.d("updateFile", "fileTime: " + fileTime);
    Log.d("updateFile", "curTime: " + curTime);
    Log.d("updateFile", "fileage: " + fileAge);

    // return true if file is older than an hour
    return fileAge > (1000 * 60 * 60);

}

From source file:Main.java

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

From source file:Main.java

public static void printLogRequest(Class<?> c, String url, String data) {
    if (enableDebug) {
        Log.e(c.getSimpleName(), "url/data: " + url + "/" + data);
    }/*from  www. j a va2s . co m*/
}

From source file:Main.java

public static void e(String msg) {
    if (DEBUG) {
        Log.e(eTag, msg);
    }
}

From source file:Main.java

public static void MyLog_e(Context context, String str) {
    if (isOpen) {
        Log.e(context.getClass().getSimpleName(), str);
    }
}

From source file:Main.java

public static void e(String msg) {
    if (isDebug)
        Log.e(TAG, msg);
}

From source file:Main.java

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

From source file:Main.java

public static int getIsFristWeek() {
    Calendar cal = Calendar.getInstance();
    int date = cal.get(Calendar.DAY_OF_WEEK);
    Log.e("WeekDay", "" + date);
    return date;//  w w w . java 2  s  .  com
}

From source file:Main.java

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