List of usage examples for android.util Log d
public static int d(String tag, String msg)
From source file:Main.java
private static void printLog(String info) { if (DEBUG) { Log.d(TAG, info); } }
From source file:Main.java
public static void d(String tag, String msg) { if (SHOW) { Log.d(tag, msg); } }
From source file:Main.java
public static void dumpBundleKeys(Intent intent) { if (intent == null) { Log.d(TAG, "intent is null"); return;//from w ww . j a v a2 s . c o m } dumpBundleKeys(intent.getExtras()); }
From source file:Main.java
public static void PrintHex(String Tag, byte[] buffer, int size) { String msg = ""; for (int i = 0; i < size; i++) { msg = String.format("%s 0x%02X", msg, buffer[i]); }//from w w w . j a v a2 s . co m Log.d(Tag, "HexData=[" + msg + "]"); }
From source file:Main.java
public static void drawKnots(Canvas canvas, List<PointF> knots, int color) { Log.d("GammaGraph", "function drawKnots"); Paint paint = new Paint(); paint.setAntiAlias(true);//from ww w . ja v a2s. c om paint.setColor(color); paint.setStrokeWidth(7); for (PointF knot : knots) { canvas.drawPoint(knot.x, knot.y, paint); } }
From source file:Main.java
public static void LOGD(final String tag, String message) { if (LOGGING_ENABLED) { if (Log.isLoggable(tag, Log.DEBUG)) { Log.d(tag, message); }/*from w ww . j a v a 2 s .c om*/ } }
From source file:Main.java
public static void setLog(String message) { if (LOGGING) Log.d(TAG, message); }
From source file:Main.java
static public void dumpCursor(Cursor cursor) { final String LOG_TAG = "dumpCursor"; if (cursor != null) { Log.d(LOG_TAG, "cursor " + cursor.getCount()); for (int i = 0; i < cursor.getColumnCount(); i++) Log.d(LOG_TAG, "col " + i + " " + cursor.getColumnName(i)); cursor.moveToFirst();/* ww w . jav a2 s. c om*/ String[] a = new String[cursor.getColumnCount()]; while (!cursor.isAfterLast()) { for (int i = 0; i < a.length; i++) a[i] = cursor.getString(i); Log.d(LOG_TAG, Arrays.toString(a)); cursor.moveToNext(); } cursor.moveToFirst(); } }
From source file:Main.java
public static void recycleBmp(Bitmap bmp) { if (null != bmp && !bmp.isRecycled()) { bmp.recycle();//ww w. j a v a2 s . co m Log.d(LOGTAG, "=======recycleBmp ======"); } }
From source file:Main.java
public static boolean isConnected(Context context) { Log.d(TAG, "isConnected(context = " + context + ")"); ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo netInfo = cm.getActiveNetworkInfo(); return netInfo != null && netInfo.isConnectedOrConnecting(); }