Java tutorial
//package com.java2s; import android.util.Log; public class Main { private static final boolean DEBUG_FLG = false; private static final String TAG = "AppLog"; public static void addLogi(String message) { if (DEBUG_FLG) { Log.i(TAG, message); } } }