[mono-android] Maps API key issue

Brian Long brian at blong.com
Mon Mar 21 18:50:44 EDT 2011


After some faffing about, I've concluded that the rules in
the Novell.MonoDroid.Common.targets file seem to necessitate setting an
additional property in the project in addition the the four specified
(AndroidSigningKeyStore, AndroidSigningStorePass, AndroidSigningKeyAlias and
AndroidSigningKeyPass), namely AndroidKeyStore

I'm not sure exactly what it does, but I set it to the same as
AndroidSigningKeyStore and now I have a working MapView (without setting it,
msbuild still generated a new keystore each time)

May be worth having someone check over the Signing section of that page?

- Brian

On 21 March 2011 21:49, Brian Long <brian at blong.com> wrote:

> Aha! That seems to be what I needed to know :-)
>
> "By default, the signing target generates a new debug-signing key if
> necessary."
>
> I shall start digging into how to use the cited msbuild properties
>
> Thank you
>
> - Brian
>
> On 21 March 2011 21:35, Jonathan Pobst <monkey at jpobst.com> wrote:
>
>> I don't know if the keystore is your issue, but here's how to play with
>> the settings:
>>
>> http://mono-android.net/Documentation/Build_Process
>>
>> See "Signing" at the bottom.
>>
>> Jonathan
>>
>>
>>
>> On 3/21/2011 4:27 PM, Brian Long wrote:
>>
>>> Hello all
>>>
>>> I'm failing to get a MapView example up and running
>>>
>>> I've read the README in
>>> https://github.com/mono/monodroid-samples/tree/master/GoogleMaps and
>>> have a general understanding of the requirement
>>>
>>> The symptom is that the MapView shows no tiles - just an empty grid
>>>
>>> Wisdom suggests I haven't generated my API key successfully, and I'm
>>> sure that's right
>>>
>>> Various posts online suggest I should generate the key from what appears
>>> to be a single original debug.keystore in %USERPROFILE%\Local
>>> Settings\Application Data\Android\debug.keystore (or some equivalent in
>>> Windows 7), though I can;t actually find this
>>>
>>> However I notice that each of my projects has a debug.keystore in
>>> obj\Debug. Furthermore, it _seems_ that msbuild is generating this
>>> afresh each time I build, using a cmdline of:
>>>
>>> "C:\Program Files\Java\jdk1.6.0_23\bin\keytool.exe"  -genkeypair -alias
>>> "androiddebugkey" -dname "CN=Android Debug,O=Android,C=US" -storepass
>>> "android" -keypass "android" -keystore "obj\Debug\debug.keystore"
>>>
>>> Moreover, it _appears_ that each time I get a new one generated, I get a
>>> different fingerprint. Consequently this yields a different API key, and
>>> by the time I insert the key and run the app, the fingerprint has
>>> changed meaning the key is wrong....
>>>
>>> Presumably there is some way of making the project reference a singular
>>> pre-built keystore, especially given one needs to make a new one with
>>> keytool for non-debug deployments, but I cannot fathom how just yet
>>>
>>> Anyway, you can see I'm floundering. I'm hoping I've given enough info
>>> for it to be obvious for those who've been down this road to know what
>>> is going on and what obvious step I've missed
>>>
>>> Thanks for any help
>>>
>>> - Brian
>>>
>>>
>>>
>>> _______________________________________________
>>> Monodroid mailing list
>>> Monodroid at lists.ximian.com
>>>
>>> UNSUBSCRIBE INFORMATION:
>>> http://lists.ximian.com/mailman/listinfo/monodroid
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110321/d0502906/attachment.html 


More information about the Monodroid mailing list