title: Is there any code needed in Activity so that ga_autoActivityTracking = true would work for Google Analytics V4
body: <p>In Google Analytics v3, to auto tracking for <code>Activity</code>, we need to have</p>
  
  <ol>
  <li><code>ga_autoActivityTracking</code> flag in manifest.xml.</li>
  <li>GA code in <code>onStart</code> and <code>onStop</code></li>
  </ol>
  
  <h2>Google Analytics SDK for Android v3</h2>
  
  <pre><code>public class myTrackedActivity extends Activity {
  
    @Override
    public void onStart() {
      super.onStart();
      ... // The rest of your onStart() code.
      EasyTracker.getInstance(this).activityStart(this);  // Add this method.
    }
  
    @Override
    public void onStop() {
      super.onStop();
      ... // The rest of your onStop() code.
      EasyTracker.getInstance(this).activityStop(this);  // Add this method.
    }
  }
  
  &lt;?xml version="1.0" encoding="utf-8" ?&gt;
  
  &lt;resources&gt;
    &lt;!--Replace placeholder ID with your tracking ID--&gt;
    &lt;string name="ga_trackingId"&gt;UA-XXXX-Y&lt;/string&gt;
  
    &lt;!--Enable automatic activity tracking--&gt;
    &lt;bool name="ga_autoActivityTracking"&gt;true&lt;/bool&gt;
  
    &lt;!--Enable automatic exception tracking--&gt;
    &lt;bool name="ga_reportUncaughtExceptions"&gt;true&lt;/bool&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>However, when comes to newer version of Google Analytics v4, (<a href="https://developers.google.com/analytics/devguides/collection/android/v4/" rel="noreferrer">https://developers.google.com/analytics/devguides/collection/android/v4/</a>), I don't see any code need to be added in <code>Activity</code>. From the above documentation, it seems that we only need</p>
  
  <ol>
  <li><code>ga_autoActivityTracking</code> flag in manifest.xml.</li>
  </ol>
  
  <h2>Google Analytics SDK v4</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
    &lt;integer name="ga_sessionTimeout"&gt;300&lt;/integer&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;screenName name="com.google.android.gms.analytics.samples.mobileplayground.ScreenviewFragment"&gt;
          AnalyticsSampleApp ScreenView
      &lt;/screenName&gt;
      &lt;screenName name="com.google.android.gms.analytics.samples.mobileplayground.EcommerceFragment"&gt;
          AnalyticsSampleApp EcommerceView
      &lt;/screenName&gt;
      &lt;!--  The following value should be replaced with correct property id. --&gt;
      &lt;string name="ga_trackingId"&gt;UA-XXXXXXX-Y&lt;/string&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>However, after tested, it seems that there is no tracking information being automatically sent out from <code>Activity</code>.</p>
  
  <p>Is the documentation for Google Analytics V4 missing something? </p>