Example usage for android.util Log v

List of usage examples for android.util Log v

Introduction

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

Prototype

public static int v(String tag, String msg, Throwable tr) 

Source Link

Document

Send a #VERBOSE log message and log the exception.

Usage

From source file:Main.java

public static void v(String tag, String msg, Throwable throwable) {
    Log.v(tag, msg, throwable);
}

From source file:Main.java

public static void v(String tag, String msg, Throwable tr) {
    if (LOG_ENABLED)
        Log.v(tag, msg, tr);
}

From source file:Main.java

public final static void v(String tag, String msg, Throwable tr) {
    if (debug) {
        Log.v(tag, msg, tr);
    }
}

From source file:Main.java

public static void v(String tag, String msg, Throwable tr) {
    if (isDebugging) {
        Log.v(tag, msg, tr);
    }
}

From source file:Main.java

public static void v(String msg, Throwable tr) {
    if (DEBUG) {
        Log.v(vTag, msg, tr);
    }
}

From source file:Main.java

public static void v(String tag, String msg, Throwable tr) {
    if (DEBUG) {
        Log.v(tag, msg, tr);
    }
}

From source file:Main.java

private static List<String> getColumns(SQLiteDatabase db, String tableName) {
    List<String> columns = new ArrayList<>();
    Cursor cursor = null;//from   w  ww.j a v a 2 s .co  m
    try {
        cursor = db.rawQuery("SELECT * FROM " + tableName + " limit 1", null);
        if (cursor != null) {
            columns = new ArrayList<>(Arrays.asList(cursor.getColumnNames()));
        }
    } catch (Exception e) {
        Log.v(tableName, e.getMessage(), e);
        e.printStackTrace();
    } finally {
        if (cursor != null)
            cursor.close();
    }
    return columns;
}

From source file:Main.java

public static List<String> GetColumns(SQLiteDatabase db, String tableName) {
    List<String> ar = null;
    Cursor c = null;/*  w ww . ja v a2  s  . c  om*/
    try {
        c = db.rawQuery("select * from " + tableName + " limit 1", null);
        if (c != null) {
            ar = new ArrayList<String>(Arrays.asList(c.getColumnNames()));
        }
    } catch (Exception e) {
        Log.v(tableName, e.getMessage(), e);
        e.printStackTrace();
    } finally {
        if (c != null)
            c.close();
    }
    return ar;
}

From source file:Main.java

/**
 * Get columns for table/* www.j a  v a  2 s  .c o  m*/
 * @param db
 * @param tableName
 * @return
 */
public static List<String> getColumns(SQLiteDatabase db, String tableName) {
    List<String> ar = null;
    Cursor c = null;
    try {
        c = db.rawQuery("select * from " + tableName + " limit 1", null);
        if (c != null) {
            ar = new ArrayList<String>(Arrays.asList(c.getColumnNames()));
        }
    } catch (Exception e) {
        Log.v(tableName, e.getMessage(), e);
        e.printStackTrace();
    } finally {
        if (c != null)
            c.close();
    }
    return ar;
}

From source file:Main.java

public static void LOGV(final String tag, String message, Throwable cause) {
    if (LOGGING_ENABLED) {
        if (Log.isLoggable(tag, Log.VERBOSE)) {
            Log.v(tag, message, cause);
        }//from w w w  .j av a2s.c o m
    }
}