How to get class name only, not full path? February 9, 2023 by Tarik This is all you need. MainActivity.this.getClass().getSimpleName();