2017-07-13
StackTraceElement e= Thread.currentThread().getStackTrace()[4];
String caller = e.getFileName() +":"+ e.getLineNumber() +" ";
Log.d(TAG,"invalidate: "+ caller);
获得当前调用的trace
2017-07-13
StackTraceElement e= Thread.currentThread().getStackTrace()[4];
String caller = e.getFileName() +":"+ e.getLineNumber() +" ";
Log.d(TAG,"invalidate: "+ caller);
获得当前调用的trace