SyntaxFix
Write A Post
Hire A Developer
Questions
Here is a Android variant, but same principle can be used in plain Java too.
private static final String TAG = YourClass.class.getSimpleName(); private static final String TAG = YourClass.class.getName();