title: Android Analytics API V4 doesnt report data
body: <p>What could cause analytics hit do not be sent to server? Here is my log</p>
  
  <pre><code>12-16 17:19:41.921  15731-15758/com.zapk.lsmods V/GAV4﹕ Thread[GAThread,5,main]: connecting to Analytics service
  12-16 17:19:41.951  15731-15758/com.zapk.lsmods V/GAV4﹕ Thread[GAThread,5,main]: connect: bindService returned true for Intent { act=com.google.android.gms.analytics.service.START cmp=com.google.android.gms/.analytics.service.AnalyticsService (has extras) }
  
  12-16 17:19:42.021  15731-15758/com.zapk.lsmods I/GAV4﹕ Thread[GAThread,5,main]: No campaign data found.
  12-16 17:19:42.021  15731-15758/com.zapk.lsmods V/GAV4﹕ Thread[GAThread,5,main]: Initialized GA Thread
  12-16 17:19:42.021  15731-15758/com.zapk.lsmods V/GAV4﹕ Thread[GAThread,5,main]: Loaded clientId
  12-16 17:19:42.031  15731-15758/com.zapk.lsmods V/GAV4﹕ Thread[GAThread,5,main]: putHit called
  12-16 17:19:42.061  15731-15731/com.zapk.lsmods V/GAV4﹕ Thread[main,5,main]: service connected, binder: android.os.BinderProxy@41546a38
  12-16 17:19:42.061  15731-15731/com.zapk.lsmods V/GAV4﹕ Thread[main,5,main]: bound to service
  12-16 17:19:42.061  15731-15731/com.zapk.lsmods V/GAV4﹕ Thread[main,5,main]: Connected to service
  12-16 17:19:42.141  15731-15758/com.zapk.lsmods V/GAV4﹕ Thread[GAThread,5,main]: Sending hit to service   PATH: https:  PARAMS: v=1,  ul=en-gb,  t=screenview,  ht=1418743176826,  sr=540x960,  a=2025550344,  an=Farming simulator 15 mods,  tid=UA-57677772-1,  aid=com.zapk.lsmods,  cid=c892183c-7dbc-4170-b0c7-5f73fc0a820c,  av=1.0,  _u=.22nK-AL,  cd=MainActivity,
  </code></pre>
  
  <p>this is code for my AppController
    // The following line should be changed to include the correct property id.</p>
  
  <pre><code>   private static final String PROPERTY_ID = "UA-XXXX-1";
  
      public static int GENERAL_TRACKER = 0;
      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 HashMap&lt;TrackerName, Tracker&gt; mTrackers = new HashMap&lt;TrackerName, Tracker&gt;();
  
      public AppController() {
          super();
      }
  
      private void initGoogleAnalytics() {
          GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
          analytics.setDryRun(false);
          analytics.setLocalDispatchPeriod(1);
          analytics.getLogger().setLogLevel(Logger.LogLevel.VERBOSE);
          analytics.enableAutoActivityReports(this);
      }
  
      @Override
      public void onCreate() {
          super.onCreate();
          initGoogleAnalytics();
      }
  
      public synchronized Tracker getTracker(TrackerName trackerId) {
          if (!mTrackers.containsKey(trackerId)) {
              GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
              Tracker t = (trackerId == TrackerName.APP_TRACKER) ? analytics.newTracker(PROPERTY_ID): (trackerId == TrackerName.GLOBAL_TRACKER) ? analytics.newTracker(R.xml.global_tracker): analytics.newTracker(R.xml.ecommerce_tracker);
              mTrackers.put(trackerId, t);
  
          }
          return mTrackers.get(trackerId);
      }
  </code></pre>
  
  <p>And then I am calling analytics like this: </p>
  
  <pre><code>Tracker track = ((AppController)this.getApplication()).getTracker(AppController.TrackerName.APP_TRACKER);
          track.setScreenName("MainActivity");
          track.send(new HitBuilders.ScreenViewBuilder().build());
  </code></pre>
  
  <p>this is code for my app_tracker xml file:</p>
  
  <pre><code>&lt;string name="ga_trackingId"&gt;UA-XXXXX-1&lt;/string&gt;
  
  &lt;bool name="ga_autoActivityTracking"&gt;true&lt;/bool&gt;
  &lt;bool name="ga_reportUncaughtExceptions"&gt;true&lt;/bool&gt;
  
  &lt;string name="ga_appName"&gt;Serivce&lt;/string&gt;
  &lt;string name="ga_appVersion"&gt;1.1.3&lt;/string&gt;
  
  &lt;bool name="ga_debug"&gt;true&lt;/bool&gt;
  
  &lt;item name="ga_dispatchPeriod" format="integer" type="integer"&gt;120&lt;/item&gt;
  
  &lt;string name="ga_sampleFrequency"&gt;90&lt;/string&gt;
  
  
  &lt;bool name="ga_dryRun"&gt;false&lt;/bool&gt;
  
  &lt;!-- Percentage of events to include in reports --&gt;
  &lt;string name="ga_sampleFrequency"&gt;100.0&lt;/string&gt;
  
  &lt;!-- How long a session exists before giving up --&gt;
  &lt;integer name="ga_sessionTimeout"&gt;2000&lt;/integer&gt;
  
  &lt;screenName name="com.zapk.lsmods.MainActivity"&gt;
      MainActivity
  &lt;/screenName&gt;
  &lt;screenName name="com.zapk.lsmods.MainFragment"&gt;
      AnalyticsSampleApp MainFragment
  &lt;/screenName&gt;
  </code></pre>
  
  <p>I mananged to get my hit sent one time, but I still couldnt see any information in my analytics dashboard. </p>