title: Google Analytics API v4 for Android Does NOT Send Screen Views
body: <p>I've set all things for google analytics api v4 as it mentioned here: <br>
  <a href="https://developers.google.com/analytics/devguides/collection/android/v4/">https://developers.google.com/analytics/devguides/collection/android/v4/</a> <br><strong>and here:</strong>
  <a href="http://www.javacodegeeks.com/2014/04/working-with-google-analytics-api-v4-for-android.html">http://www.javacodegeeks.com/2014/04/working-with-google-analytics-api-v4-for-android.html</a></p>
  
  <p><br></p>
  
  <p>I can see real time data but i could NOT see <strong>Screens, Active Users,New Users and Top Device Models</strong> in specific time period such as "All Time".</p>
  
  <p>Analytic does not send screen views.</p>
  
  <p><br>
  Here is my <strong>global_tracker.xml</strong></p>
  
  <pre><code>    &lt;string name="ga_trackingId"&gt;UA-XXXXXXXX-Y&lt;/string&gt;
  
      &lt;integer name="ga_sessionTimeout"&gt;300&lt;/integer&gt;
  
      &lt;bool name="ga_autoActivityTracking"&gt;true&lt;/bool&gt;
  
      &lt;bool name="ga_reportUncaughtExceptions"&gt;true&lt;/bool&gt;
  
      &lt;screenName name="com.org.ScreenActivity1"&gt;Screen 1&lt;/screenName&gt;
      &lt;screenName name="com.org.ScreenActivity2"&gt;Screen 2&lt;/screenName&gt;
  </code></pre>
  
  <p><br>Here is my <strong>AndroidManifest.xml</strong> </p>
  
  <pre><code>        &lt;meta-data
              android:name="com.google.android.gms.version"
              android:value="@integer/google_play_services_version"/&gt;
  
          &lt;meta-data
              android:name="com.google.android.gms.analytics.globalConfigResource"
              android:resource="@xml/global_tracker"/&gt;
  </code></pre>
  
  <p><br>Here is my <strong>Analytics.java</strong></p>
  
  <pre><code>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.
      }
  
      HashMap&lt;TrackerName, Tracker&gt; mTrackers = new HashMap&lt;TrackerName, Tracker&gt;();
  
      public Analytics() {
          super();
      }
  
      public synchronized Tracker getTracker(TrackerName trackerId) {
  
          if (!mTrackers.containsKey(trackerId)) {
  
              GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
  
              if (trackerId == TrackerName.GLOBAL_TRACKER) {
                  mTrackers.put(trackerId, analytics.newTracker(R.xml.global_tracker));
              }
  
          }
  
          return mTrackers.get(trackerId);
      }
  </code></pre>
  
  <p><br>Here is my <strong>Activity class</strong>:</p>
  
  <pre><code>protected void onCreate(Bundle bundle){
  //......................
  
  Tracker tracker = ((Analytics) getApplication()).getTracker(Analytics.TrackerName.GLOBAL_TRACKER);
          tracker.setScreenName("Main Activity");
          tracker.send(new HitBuilders.AppViewBuilder().build());
  
  //......................
  
  }
  
      @Override
      protected void onStart() {
          super.onStart();
          GoogleAnalytics.getInstance(this).reportActivityStart(this);
      }
  
      @Override
      protected void onStop() {
          super.onStop();
          GoogleAnalytics.getInstance(this).reportActivityStop(this);
      }
  </code></pre>