add printStack()

This commit is contained in:
Andy2 2011-03-02 18:59:35 -08:00
parent a0bf3405b8
commit 0348867326

View file

@ -83,6 +83,16 @@ public class Utils {
}
} // logf
public static void printStack()
{
if ( s_doLog ) {
StackTraceElement[] trace = Thread.currentThread().getStackTrace();
for ( int ii = 0; ii < trace.length; ++ii ) {
Utils.logf( "ste %d: %s", ii, trace[ii].toString() );
}
}
}
public static void notImpl( Context context )
{
CharSequence text = "Feature coming soon";