开发者

working map suddenly display crosses

开发者 https://www.devze.com 2023-01-30 07:14 出处:网络
I was during developing my map based android app, then after running it couple of times in emulator, suddenly map gone and shows crosses. I had obtained a new key yesterday.

I was during developing my map based android app, then after running it couple of times in emulator, suddenly map gone and shows crosses. I had obtained a new key yesterday.

I开发者_开发技巧'm using android 2.2 V8. thanks all.


are you signin and exporting the application with the debug.keystore? if so, the app will not shows you the MapView. You have to create a sdk fingerprint (with the sdk that are you using) and generate the apy key for that one, and using into the MapView, did you make this?

to generate a new sdk fingerprint do in a shell;

keytool -genkey -alias anAlias -keystore myStore

write a password and complete all information requested;

when you´re finished do this to obtain the MD5 fingerprint:

keytool -list -keystore myStore

then, register that fingerprint with google maps api signup, put the generated key into the MapView layout. Now use this keystore to sign and export your application, if all is good the MapView will show on "non-debuggable" environments, i mean, when you distributes your app.

hope this help cheers


I was getting blank map or sometimes crosses because points used to send by DDMS was not correct. Send correct formated lat and lng like (+/-) xx.xxxxxx

0

精彩评论

暂无评论...
验证码 换一张
取 消