title: How to get class name only, not full path?
body: <p>I am aware that using <code>Context</code> and a method <code>getClass().getName()</code> I can get a string which represent full class name, like <code>com.package1.package2.MainActivity</code>. </p>
  
  <p>How can I get only the last part, class name only? In this case it would be <code>MainActivity</code> string. </p>
  
  <p>I can do it with a simple <code>split()</code> method, but maybe there is a better way, more reliable. </p>