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
-
1Do 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 .jcxavier– jcxavier2012-03-02 18:01:22 +00:00Commented 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 .androniennn– androniennn2012-03-02 18:05:41 +00:00Commented 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).jcxavier– jcxavier2012-03-02 18:08:15 +00:00Commented 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 ...androniennn– androniennn2012-03-02 18:11:42 +00:00Commented Mar 2, 2012 at 18:11
-
you are right. Here you are: code.google.com/android/add-ons/google-apis/mapkey.htmljcxavier– jcxavier2012-03-02 18:14:36 +00:00Commented Mar 2, 2012 at 18:14
|
Show 3 more comments
1 Answer
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