How do I get the current stack trace in Java, like how in .NET you can do Environment.StackTrace?
I found Thread.dumpStack() but it is not what I want -
Thread.dumpStack()
On android a far easier way is to use this:
import android.util.Log; String stackTrace = Log.getStackTraceString(exception);