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) 

Source Link

Document

Send a #VERBOSE log message.

Usage

From source file:Main.java

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

From source file:Main.java

public static String getWifiName(Context context) {
    Log.v(TAG, "-- Calling WIFI NAME --");
    if (context != null) {
        ConnectivityManager conMgr = (ConnectivityManager) context
                .getSystemService(Context.CONNECTIVITY_SERVICE);
        WifiManager wifiMgr = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
        if (conMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI).isConnectedOrConnecting()) {
            WifiInfo wifiInfo = wifiMgr.getConnectionInfo();
            Log.v(TAG, "-- WIFI is Enabled Name = " + wifiInfo.getSSID());
            return wifiInfo.getSSID();
        }/*from  w w  w.ja  v  a 2 s .  c  om*/
    }
    return "";
}

From source file:Main.java

public static void v(String tag, String msg) {
    if (IS_DEBUG) {
        Log.v(tag, "-->" + msg);
    }
}

From source file:Main.java

public static void v(String cusPreLogStr, String logStr) {
    Log.v(TAG, cusPreLogStr + logStr);
}

From source file:Main.java

/**
 * Checks network availability// ww w  .  j  a  v  a 2  s .  co  m
 * 
 * @param context
 * @return
 */
public static boolean isNetworkAvailable(Context context) {
    Log.v(TAG, "isNetworkAvailable called.");
    ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);

    if (cm.getActiveNetworkInfo() == null) {
        Log.d(TAG, "no active network info found.");
        return false;
    }

    Log.v(TAG, "active network info found.");
    return cm.getActiveNetworkInfo().isConnectedOrConnecting();
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

public static int getLinkSpeedMax(Context context) {
    /**/*ww w . ja  v a 2 s.  co  m*/
     * Mbps
     */
    WifiManager wm = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
    WifiInfo wi = wm.getConnectionInfo();
    Log.v("getLinkSpeed", String.valueOf(wi.getLinkSpeed()));
    return wi.getLinkSpeed();
}

From source file:Main.java

public static void v(String tag, String msg) {
    if (isDebug) {
        if (tag == null || "".equalsIgnoreCase(tag.trim())) {
            tag = mTag;/*from   w  w w .  ja  va2 s  . co  m*/
        }
        Log.v(tag, msg);
    }
}

From source file:Main.java

public static int getStatusBarHeight(Context context) {
    Resources resources = context.getResources();
    int resourceId = resources.getIdentifier("status_bar_height", "dimen", "android");
    int height = resources.getDimensionPixelSize(resourceId);
    Log.v("dbw", "Status height:" + height);
    return height;
}