Android - Finicky String Resource Support
<p>I just released an update to my App where I've expanded API support to use Google Maps API and Google Analytics API.</p>

<p>I attempted to keep a "clean" configuration in the string.xml resource file, when I ran into the following problems.  <strong>Any reason for the disparity in using string.xml to store global variables for these resources?</strong></p>

<h1>1 Google Analytics</h1>

<pre><code>&lt;!-- GOOGLE ANALYTICS CODE --&gt;
&lt;string name="ga_api_key"&gt;UA-XXXXXXXX-1&lt;/string&gt;
&lt;bool name="ga_debug"&gt;false&lt;/bool&gt;   &lt;!-- TRUE Prints analytics to LogCat --&gt;
&lt;bool name="ga_dryrun"&gt;false&lt;/bool&gt;      &lt;!-- TRUE Does not transmit to Google --&gt;
&lt;integer name="ga_interval"&gt;60&lt;/integer&gt; &lt;!-- Dispatch Interval in Seconds --&gt;
</code></pre>

<p>Problem: Google Tracker never dispatched using "ga_interval", I had to add 60 to the Start Session method:</p>

<pre><code>googleTracker = GoogleAnalyticsTracker.getInstance();       googleTracker.setDebug(Boolean.parseBoolean(this.getString(R.bool.ga_debug)));      googleTracker.setDryRun(Boolean.parseBoolean(this.getString(R.bool.ga_dryrun)));
googleTracker.startNewSession(this.getString(R.string.ga_api_key), 60, this);
</code></pre>

<h1>2 Android Manifest</h1>

<pre><code>&lt;!--  APP VERSION For some reason these don't work in The Manifest--&gt;
&lt;integer name="app_versionCode"&gt;2&lt;/integer&gt; 
&lt;string name="app_versionName"&gt;2.0&lt;/string&gt;
</code></pre>

<p>Problem: App installed final apk from adb just fine, but Google Play would not accept the Uploaded apk, "The server could not process your apk. Try again."  So, I added the following back to my Manifest and the upload worked:</p>

<pre><code>android:versionCode="2"
android:versionName="2.0"    
</code></pre>

<h1>3 Google Maps</h1>

<p>What I found interesting, is that the Google Map API Key referenced in my string.xml worked just fine:</p>

<pre><code>&lt;!-- (PRODUCTION) GOOGLE MAPS API KEY --&gt; 
&lt;string name="MapApiKey"&gt;idsi7298fnus..............&lt;/string&gt;
</code></pre>

<p>Works just fine!!!</p>

<pre><code>&lt;!-- GOOGLE MAP--&gt;
&lt;com.google.android.maps.MapView       
 android:id="@+id/mapview"
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 android:clickable="true" 
 android:apiKey="@string/MapApiKey"/&gt;   
</code></pre>
