title: Android: automatically choose debug/release Maps api key?
body: <p><strong>OBSOLETED: this old question refers to obsoleted Google Maps v1 API. When using v2 API, you can use multiple certificate fingerprints in one <a href="https://code.google.com/apis/console/" rel="nofollow noreferrer">Google API Console</a> entry. API Key is no longer stored in Manifest nor code.</strong></p>
  
  <hr>
  
  <p>Is it possible to automatically detect, which certificate was used for signing APK? I'd like to have both debug and release Maps certificates in application and pass valid one to MapView constructor.</p>
  
  <p>With such setup I will not make mistake while releasing application - I'm using debug certificate on emulator and my device, then sign with release one before sending app to Market.</p>
  
  <p>I was thinking about detecting my particular device or whether debugger is connected but it is not perfect. Maybe some file marking need for debug certificate? Is there any better way?</p>