Android: automatically choose debug/release Maps api key?
        Posted  
        
            by tomash
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by tomash
        
        
        
        Published on 2010-06-12T19:16:58Z
        Indexed on 
            2010/06/12
            19:22 UTC
        
        
        Read the original article
        Hit count: 292
        
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.
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.
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?
© Stack Overflow or respective owner