TAG Constant


Last Updated:

  1. danny22

    danny22 New Member This Topic's Starter

    Joined:
    May 26, 2010
    Messages:
    1
    Likes Received:
    0
    What is the TAG constant used for?

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

    Advertisement
  2. IanGClifton

    IanGClifton Well-Known Member

    Joined:
    Feb 7, 2010
    Messages:
    111
    Likes Received:
    19
    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.
     

Share This Page

Loading...