Apps TAG Constant

danny22

Lurker
What is the TAG constant used for?

ie: private static final String TAB = "........"
 
D

Deleted User

Guest
TAG is usually used to refer to your activity when logging (TAG = "com.mycompany.myapp.myactivity")

Log.d(TAG, "Log something here");

It allows you to easily identify where a log message originates.
 
Top