ide/androidstudio

현재 메소드 명

C/H 2016. 12. 23. 08:30

private final static String TAG = MainActivity.class.getSimpleName();

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    Log.d(TAG, new Exception().getStackTrace()[0].getMethodName() );
}


반응형