Android Open Source - android-video-sync Logga






From Project

Back to project page android-video-sync.

License

The source code is released under:

GNU General Public License

If you think the Android project android-video-sync listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package me.ramuta.videosynctest;
//  ww  w  .j  a v  a 2  s . c  o m
import android.util.Log;

/**
 * Created by ramuta on 18/11/2014.
 */
public class Logga {
    private static final boolean DEBUGGA = true;

    public static void i(final String message) {
        if(DEBUGGA) {
            final String fullClassName = Thread.currentThread().getStackTrace()[3].getClassName();
            final String className = fullClassName.substring(fullClassName.lastIndexOf(".") + 1);
            final int lineNumba = Thread.currentThread().getStackTrace()[3].getLineNumber();

            Log.i(className, "#" + lineNumba + " " + message);
        }
    }

    public static void e(final String message) {
        if(DEBUGGA) {
            final String fullClassName = Thread.currentThread().getStackTrace()[3].getClassName();
            final String className = fullClassName.substring(fullClassName.lastIndexOf(".") + 1);
            final int lineNumba = Thread.currentThread().getStackTrace()[3].getLineNumber();

            Log.e(className, "#" + lineNumba + " ERRA!!1 " + message);
        }
    }
}




Java Source Code List

me.ramuta.videosynctest.ApplicationTest.java
me.ramuta.videosynctest.Logga.java
me.ramuta.videosynctest.MainActivity.java
me.ramuta.videosynctest.SntpClient.java
me.ramuta.videosynctest.VideoActivity.java
me.ramuta.videosynctest.VideoForwardActivity.java