1. Are you ready for the Galaxy S20? Here is everything we know so far!

TAG Constant

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

  1. danny22

    danny22 Lurker
    Thread Starter

    What is the TAG constant used for?

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

    1. Download the Forums for Android™ app!


  2. IanGClifton

    IanGClifton Well-Known Member

    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