Thursday, February 12, 2015

Get method name at runtime

Thread.currentThread().getStackTrace()[1].getMethodName();

No comments:

Post a Comment