Back to project page android-video-sync.
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.
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); } } }