[android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2010-04-10 Thread mendhak
Hi, thanks for responding. I had a look, and yes, the bytes were the same as the 979 character string (hex) - they contained the certificate itself. I should post it here anyways, since it is the debug certificate in this case. Well, here it is: --

[android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2010-04-05 Thread mendhak
Still struggling with this. Based on what you said, I tried playing with this: Signature[] sigs = getBaseContext().getPackageManager().getPackageInfo(com.whatever.blahpackage, 64).signatures; (64 = GET_SIGNATURE) I then had a look at sigs[0].toCharsString() which produced a 979 character

[android-developers] How do I get the MD5 fingerprint of my application certificate through code?

2010-03-30 Thread mendhak
I'd like to be able to get the MD5 fingerprint of the certificate associated with my app (regardless of whether it's the debug cert or the release cert). You're probably aware that in order to get a Google Maps API key, you need to provide them with the certificate fingerprint of your app so that