Java tutorial
//package com.java2s; import android.util.Log; public class Main { private static boolean mNowDebugFlag = true; public static int i(String tag, String msg) { if (mNowDebugFlag) { return Log.i(tag, msg); } return 0; } }