Android Open Source - GridViewHeader Utilities






From Project

Back to project page GridViewHeader.

License

The source code is released under:

Apache License

If you think the Android project GridViewHeader 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 com.munix.gridviewheader;
//from  w  ww .j a  v a  2  s .c  o m
import android.util.Log;

public class Utilities 
{
  public static void log(String message) 
  {
    String fullClassName = Thread.currentThread().getStackTrace()[3].getClassName();            
        String className = fullClassName.substring(fullClassName.lastIndexOf(".") + 1);
        String methodName = Thread.currentThread().getStackTrace()[3].getMethodName();
        int lineNumber = Thread.currentThread().getStackTrace()[3].getLineNumber();

        Log.v("minube " + className + "." + methodName + "():" + lineNumber, message);
  }
}




Java Source Code List

com.munix.gridviewheader.GridView.java
com.munix.gridviewheader.MainActivity.java
com.munix.gridviewheader.TestAdapter.java
com.munix.gridviewheader.Utilities.java