1. Check out our companion app, Forums for Android! Download from Google Play

TAG Constant

Discussion in 'Application Development' started by danny22, May 26, 2010.

  1. danny22

    danny22 New Member
    Thread Starter
    5

    May 26, 2010
    1
    0
    5
    What is the TAG constant used for?

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

    Advertisement

  2. 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...