Java tutorial
//package com.java2s; import android.util.Log; public class Main { private static boolean DEBUG = false; public static final void debug(boolean debug) { DEBUG = debug; } public static void debug(Object output) { if (DEBUG) { Log.d("AML", String.valueOf(output)); } } }