I switched from using Google play services 6.1 to 6.5. GoogleAnalytics reached a deadlock on:
getInstance(context);
I found this question: Android GoogleAnalytics getInstance where the second answer recommends to remove the meta-data from the Manifest file.
meta-data android:name="com.google.android.gms.analytics.globalConfigResource"
android:resource="@xml/global_tracker"
Since global_tracker.xml contained the following:
<resources>
<integer name="ga_sessionTimeout">300</integer>
<bool name="ga_reportUncaughtExceptions">true</bool>
<integer name="ga_dispatchPeriod">30</integer>
</resources>
I replaced the xml with these programmatical configurations:
GoogleAnalytics googleAnalytics = GoogleAnalytics.getInstance(mContext);
googleAnalytics.setLocalDispatchPeriod(30);
mGATracker = googleAnalytics.newTracker(mTrackerId);
mGATracker.setSessionTimeout(300);
mGATracker.enableExceptionReporting(true);
What is the reason the xml configuration no longer works and what are the implications of configuring programmatically?