Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.util.Log;

public class Main {
    public static final String DEBUG_TAG = "C2DM";
    public static final boolean DEBUG_DEVELOPER_MODE = false;

    public static int debug(String msg) {
        return debug(DEBUG_TAG, msg);
    }

    public static int debug(String tag, String msg) {
        if (DEBUG_DEVELOPER_MODE) {
            return Log.d(tag, msg);
        } else {
            return 0;
        }
    }
}