android - How to properly set log level to verbose in Google Analytics? -
in folder res/xml
, have file analytics.xml
containing line:
<string name="ga_loglevel">verbose</string>
however, in oncreate()
method of activity
, when call this:
googleanalytics.getinstance(this).newtracker(r.xml.analytics); log.d("abc",""+(googleanalytics.getinstance(this).getlogger().getloglevel() == logger.loglevel.verbose));
the output false, not true. why that?
this should trick:
googleanalytics.getinstance(this).getlogger().setloglevel(loglevel.verbose);
Comments
Post a Comment