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 {
    static final String TAG = "BackgroundLBS";

    public static void info(String fmt, Object... args) {
        Log.i(TAG, fmt(fmt, args));
        //logger.info(fmt(fmt, args));
    }

    public static String fmt(String fmt, Object... args) {
        try {
            return fmt == null ? null : args == null || args.length <= 0 ? fmt : String.format(fmt, args);
        } catch (Throwable e) {
            return fmt;
        }
    }
}