title: android analytics v4 most simplified
body: <p>I'm trying to connect google Analytics to my apps in the simplest way possible. I want to implement analytics v4, because google said that they'll force to upgrade to it soon, so I don't want to do twice the same work.</p>
  
  <p>Google's tutorial, in this case, is not very efficient. Merging what they said there and what I've found on the internet, I've made this steps:</p>
  
  <p>In Android Manifest, I've add this permissions:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  </code></pre>
  
  <p>and this, under the Application tag:</p>
  
  <pre><code>&lt;meta-data android:name="com.google.android.gms.analytics.globalConfigResource"
      android:resource="@xml/analytics" /&gt;
  &lt;meta-data android:name="com.google.android.gms.version"
      android:value="@integer/google_play_services_version" /&gt;
  </code></pre>
  
  <p>I'm not sure of the necessity of the second meta...</p>
  
  <p>I've wrote an xml file, named "analytics.xml" (/res/xml/) containing:</p>
  
  <pre><code>&lt;!-- the Local LogLevel for Analytics --&gt;
  &lt;string name="ga_logLevel"&gt;verbose&lt;/string&gt;
  
  &lt;!-- Treat events as test events and don't send to google --&gt;
  &lt;bool name="ga_dryRun"&gt;false&lt;/bool&gt;
  
  &lt;!-- &lt;integer name="ga_sessionTimeout"&gt;300&lt;/integer&gt; --&gt;
  
  &lt;!-- Enable automatic Activity measurement --&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;string name="ga_trackingId"&gt;UA-52900555-1&lt;/string&gt;
  
  &lt;!-- The screen names that will appear in reports --&gt;
  &lt;screenName name="com.maik.adbconnect.EmpityActivity"&gt;
      Adb Activation
  &lt;/screenName&gt;
  &lt;screenName name="com.maik.adbconnect.wid_class"&gt;
      Widget call
  &lt;/screenName&gt;
  </code></pre>
  
  <p>Now, in EmpityActivity.java, I've wrote this, at beginning of onCreate method:</p>
  
  <pre><code>GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
  Tracker t = analytics.newTracker(R.xml.analytics);
  t.send(new HitBuilders.AppViewBuilder().build());
  </code></pre>
  
  <p>In LogCat, analytics says that is started and hits... but in my analytics review, under "real time users", says zero....</p>
  
  <p>Additional questions:</p>
  
  <ul>
  <li><p>screennames in xml file are needed?</p></li>
  <li><p>ga_logLevel and ga_dryRun are deprecated? Because logcat warn me that those resources are not recognized</p></li>
  </ul>