Java tutorial
//package com.java2s; import android.util.Log; public class Main { private static final String TAG = "hck"; public static boolean isPrintLog; public static void D(String value) { if (isPrintLog) { Log.d(TAG, value); } } }