Java tutorial
//package com.java2s; import android.util.Log; public class Main { private static boolean DEBUG = false; private static String LOG_TAG = "MTUtils"; /** * Muestra un mensaje de log * @param text */ public static void log(String text) { if (DEBUG == true) { Log.d(LOG_TAG, text); } } }