get Stack Trace Elements - Android java.lang

Android examples for java.lang:Throwable

Description

get Stack Trace Elements

Demo Code


import android.content.Context;
import android.text.TextUtils;

public class Main{
    /**/*from  w  ww  .ja  va 2  s . c om*/
     *
     * @return
     */
    private static StackTraceElement[] getStackTraceElements() {
        StackTraceElement[] stackTraceElements = Thread.currentThread()
                .getStackTrace();
        return stackTraceElements;
    }
}

Related Tutorials