title: Android: automatically choose debug/release Maps v2 api key?
body: <p>I'm using Google Maps v2 API in my project. In Google Maps v2 the debug/release API key is defined in <code>AndroidManifest.xml</code>. I have seen <a href="https://stackoverflow.com/questions/3029819/android-automatically-choose-debug-release-maps-api-key">the link</a> but in that map key is defined in a xml layout file not in <code>AndroidManifest.xml</code>. So can I define both debug and release keys for my project in <code>AndroidManifest.xml</code>?</p>
  
  <p>I want something like this in <code>AndroidManifest.xml</code>:</p>
  
  <p>If debug mode:</p>
  
  <pre><code>&lt;meta-data
      android:name="com.google.android.maps.v2.API_KEY"
      android:value="@string/debug_map_api_key"/&gt;
  </code></pre>
  
  <p>If release mode: </p>
  
  <pre><code>&lt;meta-data
      android:name="com.google.android.maps.v2.API_KEY"
      android:value="@string/release_map_api_key"/&gt;
  </code></pre>