0

In fact, all is in the title, i succeed to display Google Maps based on API V3, and now i want to add for example an overlay/icon in the map, i have the JS script(made by google) but i don't know how to implement it in Android/JAVA? Any example please? Thank you very much.

8
  • 1
    Do you need to use the Google Maps JS API? i.e, are you developing a web-based application or with a web tool? Because you can simply use MapView, which will greatly ease your efforts while using GMaps for Android: developer.android.com/guide/tutorials/views/hello-mapview.html . Commented Mar 2, 2012 at 18:01
  • @jcxavier: i'm trying to use Google Maps V3 because they recommand to use it now, i tried to retun to v2 because i'm familiar with it but Google can not give me an API key, so i was sure that V2 is deprecated officially and they try to obligate developers to use v3 . Commented Mar 2, 2012 at 18:05
  • @androiniennn Ok, but my point wasn't comparing the JS APIs, it was telling you that Google provides a Java API to use with Android which integrates quite seamlessly (and it's easier to use in Android than the JS API). Commented Mar 2, 2012 at 18:08
  • @jcxavier: clear ;) but what about the api key that they seems blocking it? Can't use a MapView without api key i guess ... Commented Mar 2, 2012 at 18:11
  • you are right. Here you are: code.google.com/android/add-ons/google-apis/mapkey.html Commented Mar 2, 2012 at 18:14

1 Answer 1

2

Just to keep a record, the problem was that a SHA1 key was being created by the keytool instead a MD5 (that Google Maps needs to create the API key). That was happening because with the JDk 1.7 installed the keytool creates a SHA1 by default. The problem can be solved adding a -v param to the keytool command:

keytool -list -keystore ~/.android/debug.keystore -v
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.