title: How to send view to Google Analytics with Android View Pager + ActionBar tabs?
body: <p>I use ViewPager and ActionBar tabs to display data to user and I also want to send current screen to Google Analytics.</p>
  
  <p>But I have problem because ActionBar tabs work in way that they are loading data for current and next fragment, so in Google Analytics Real Time I get displayed only next fragment.</p>
  
  <p>For each fragment in ActionBar tabs I send data to Google Analytics like this:</p>
  
  <pre><code>@Override
  public void onStart() {
      // Get an Analytics tracker to report app starts &amp; uncaught exceptions
      // etc.
      // Get tracker.
      Tracker t = ((MyApplication) getActivity().getApplication())
              .getTracker(TrackerName.APP_TRACKER);
  
      // Set screen name
      t.setScreenName(screenName);
  
      // Send a screen view.
      t.send(new HitBuilders.AppViewBuilder().build());
      super.onStart();
  }
  </code></pre>
  
  <p>How I can solve this problem?</p>