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, Throwable tr) 

Source Link

Document

Send a #INFO log message and log the exception.

Usage

From source file:Main.java

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

From source file:Main.java

public static void info(String paramString, Throwable paramThrowable) {
    Log.i("WLDroidGap", getMsgNotNull(paramString), paramThrowable);
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

public static void LOGI(final String tag, String message, Throwable cause) {
    if (LOGGING_ENABLED) {
        Log.i(tag, message, cause);
    }//from   w  w w  .  ja  v  a2  s  .  com
}

From source file:Main.java

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

From source file:Main.java

public static void LOGI(final String tag, String message, Throwable cause) {
    Log.i(tag, message, cause);
}

From source file:Main.java

public static InputStream createWallpaperInputStream(Context context, String preferenceValue)
        throws FileNotFoundException {
    File file = new File(preferenceValue);
    if (file.exists()) {
        return new FileInputStream(file);
    }/*from   w ww .jav  a  2s  . com*/

    Uri uri = Uri.parse(preferenceValue);
    ContentResolver contentResolver = context.getContentResolver();
    try {
        return contentResolver.openInputStream(uri);
    } catch (SecurityException e) {
        Log.i("ThemingUtils", "unable to open background image", e);
        FileNotFoundException fileNotFoundException = new FileNotFoundException(e.getMessage());
        fileNotFoundException.initCause(e);
        throw fileNotFoundException;
    }
}

From source file:com.futureplatforms.kirin.internal.fragmentation.CursorCoercer4.java

public JSONObject coerceToJSONObject(String[] cols, AbstractWindowedCursor c) {
    JSONObject obj = new JSONObject();
    for (int i = 0; i < cols.length; i++) {
        String name = cols[i];/*w w w .j  av a2 s .com*/

        if (c.isNull(i)) {
            continue;
        }
        String str = null;
        try {
            str = c.getString(i);
        } catch (Exception e) {
            // not a string
            Log.i(C.TAG, MessageFormat.format("Column {0} could not be represented as a string", name), e);
        }
        Object res = null;
        try {
            if (res == null) {
                res = Long.parseLong(str);
            }
        } catch (Exception e) {
            // wasn't a long!
        }
        try {
            if (res == null) {
                res = Double.parseDouble(str);
            }
        } catch (Exception e) {
            // wasn't a double!
        }
        if (res == null) {
            res = str;
        }

        if (res != null) {
            try {
                obj.putOpt(name, res);
            } catch (JSONException e) {
                Log.e(C.TAG, e.getLocalizedMessage(), e);
            }
        }
    }
    return obj;
}