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 = "........"
     


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

Share This Page

Loading...