1
在文件夾res/xml
,我有一個包含此行的文件analytics.xml
:如何在Google Analytics中將日誌級別設置爲verbose?
<string name="ga_logLevel">verbose</string>
然而,在我的Activity
的onCreate()
方法,我稱之爲:
GoogleAnalytics.getInstance(this).newTracker(R.xml.analytics);
Log.d("abc",""+(GoogleAnalytics.getInstance(this).getLogger().getLogLevel() == Logger.LogLevel.VERBOSE));
輸出是假的,不真正。那爲什麼呢?