title: Google Analytics for Android v4 Auto Screen Tracking doesn't work
body: <p>I'm trying to implement GA v4 for my app. 
  And I have read docs <a href="https://developers.google.com/analytics/devguides/collection/android/v4/" rel="nofollow noreferrer">here</a>, looked <a href="https://developer.android.com/reference/com/google/android/gms/analytics/GoogleAnalytics.html" rel="nofollow noreferrer">here</a> and searched SO for the answer, but all what I found (<a href="https://stackoverflow.com/questions/23230358/enableautoactivitytracking-not-automatically-tracking-activities/23256722#23256722">enableAutoActivityTracking not automatically tracking activities?</a>) did not helped me.</p>
  
  <p>I done some changes to example in the docs and I have this in my <strong>Application subclass</strong>:</p>
  
  <pre><code>package com.example;
  
  import ...
  
  public class AppSubclass extends Application {
  
      private static final String TAG = "AppSubclass";
  
      @Override
      public void onCreate() {
          super.onCreate();
          initIrrImageLoader();
  
          ...
  
          initGoogleAnalytics();
      }
  
      private void initGoogleAnalytics() {
          GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
  
          // True to prevent sending reports to server (for debugging)
          analytics.setDryRun(true);
  
          analytics.setLocalDispatchPeriod(10); // In seconds, default 1800
  
          analytics.getLogger().setLogLevel(Logger.LogLevel.VERBOSE);
  
          // Enable automatic activity tracking
          analytics.enableAutoActivityReports(this);
      }
  
      //region GOOGLE ANALYTICS TRACKERS INIT
  
      private static final String PROPERTY_ID = "UA-XXXXXXXX-1";
  
      public static int GENERAL_TRACKER = 0;
  
      // We will use only one tracker for now. You can use multiple,
      // see https://developers.google.com/analytics/devguides/collection/android/v4/
      Tracker mAppTracker;
  
      public enum TrackerName {
          APP_TRACKER, // Tracker used only in this app.
          GLOBAL_TRACKER, // Tracker used by all the apps from a company. eg: roll-up tracking.
          ECOMMERCE_TRACKER, // Tracker used by all ecommerce transactions from a company.
      }
  
      public synchronized Tracker getTracker(TrackerName trackerId) {
          if (mAppTracker == null) {
              GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
              mAppTracker = analytics.newTracker(R.xml.app_tracker);
          }
          return mAppTracker;
      }
  
      //endregion
  }
  </code></pre>
  
  <p>And in my <strong>res/xml/app_tracker.xml</strong>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
  
      &lt;!--  App property id. --&gt;
      &lt;string name="ga_trackingId"&gt;UA-XXXXXXXX-1&lt;/string&gt;
  
      &lt;!-- Enable automatic Activity measurement --&gt;
      &lt;bool name="ga_autoActivityTracking"&gt;true&lt;/bool&gt;
  
      &lt;!-- The screen names that will appear in reports --&gt;
      &lt;string name="com.example.SomeActivity"&gt;
          SomeActivity
      &lt;/string&gt;
  
      &lt;!-- Timeout after stopping till new session start --&gt;
      &lt;integer name="ga_sessionTimeout"&gt;600&lt;/integer&gt;
  
      &lt;!-- Report uncaught exceptions --&gt;
      &lt;bool name="ga_reportUncaughtExceptions"&gt;true&lt;/bool&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p><strong>So, I have few questions:</strong></p>
  
  <ol>
  <li><p>Why neither ga_autoActivityTracking nor analytics.enableAutoActivityReports(this) helps? I don't see any dispatching in log. Nothing after <code>Thread[main,5,main]: Connected to service</code>, but all is ok when I sending screens manually.</p></li>
  <li><p>I don't understand what this constant is for (in examples):</p>
  
  <p><code>public static int GENERAL_TRACKER = 0;</code></p></li>
  <li><p>Do I need to have to use <code>TrackerName</code> enum and <code>getTracker(TrackerName trackerId)</code> method if I only want to automatically track activities.</p></li>
  </ol>
  
  <p>Thanks in advance, I really appreciate any help!</p>