Android development with Google Maps requires you to generate an API key using the MD5 fingerprint of your keystore certificate.
If there are several people on your team, it’s likely you’ll all have different debug.keystore files, and subsequently different API keys.
To fix this you should share your keystore file in something like Dropbox or a shared network drive folder, and point Eclipse to its location:
Window -> Preferences -> Android -> Build -> Custom Debug Keystore
You might also want to make your Maps API key configurable by storing it in values/strings.xml:
[xml]
<string name="map_api_key">API KEY HERE</string>
[/xml]
And then refer to it in your Maps layout file:
[xml]
<com.breezy.android.controls.MapView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:apiKey="@string/map_api_key" />
[/xml]
Leave a Reply