Log print Current Stack Trace - Android App

Android examples for App:Log

Description

Log print Current Stack Trace

Demo Code


//package com.java2s;

import android.util.Log;

public class Main {
    public static void printCurrentStackTrace() {
        for (StackTraceElement ste : Thread.currentThread().getStackTrace()) {
            Log.i("DEBUG", ste.toString());
        }/*  w  w  w.j a  v  a  2  s.  c  om*/
    }
}

Related Tutorials