How can i get the name of the class
String.class.getName() returns java.lang.String
I am only interested in getting last part ie only String
Any Api can do that?
How can i get the name of the class
String.class.getName() returns java.lang.String
I am only interested in getting last part ie only String
Any Api can do that?
Here is the Groovy way of accessing object properties:
Get simple name instead of path.
call above method in onCreate
or programmaticaly
Class.getSimpleName()
You can use following simple technique for print log with class name.
Suppose we have to check coming variable value in method then we can use log like bellow :
Importance of this line is that, we can check method name along with class name. To write this type of log.
write :- loge and Enter.
will print on console
The below both ways works fine.
Output as below: