Android Utililty Methods StackTrace Print

List of utility methods to do StackTrace Print

Description

The list of methods to do StackTrace Print are organized into topic(s).

Method

voidprintStackTrace(String TAG, Throwable ex)
print Stack Trace
StackTraceElement[] sta = ex.getStackTrace();
if (ex.getMessage() != null) {
    Log.e(TAG, ex.getMessage());
Log.e(TAG, ex.getClass().getName());
for (StackTraceElement st : sta) {
    Log.e(TAG, "   " + st.getFileName() + "." + st.getMethodName()
            + ": " + st.getLineNumber());
...