Java tutorial
//package com.java2s; import android.util.Log; public class Main { private static final boolean DEBUG = true; protected static void log(String message) { if (DEBUG) Log.e("app2sd", message); } }