开发者

Android Map: Map does not show up on Device

I am a开发者_如何学Cble to see Map in emulator but once I load app on device map does not show up.

Emulator have target as google api 1.6 and device have android 1.6 loaded.

Is this diffrence causing issue?

please help and thanks in advance.


Are you just seeing gray tiles? In that case it's almost definitely the API key that's wrong. The Emulator uses the debug keystore, with androiddebugkey, so you should create an API key for that. Remember to change it when you publish the app to the market =)

Obtaining an API Key


While the problem is most likely the one that Mr. Hedlund suggested...if the built-in Google Maps application also does not work, it is likely to be a problem accessing the Google Maps tile server from the emulator over the Internet. You would need to discuss this with your IT department.


sorry i know its a dead topic but just wanted to add my experience with this; u need the maps api key to be based off of the current keystore you are using i had exported my project using a new keystore but a maps key generated from my old keystore. once i used the new keystore to generate a new maps key everything worked


I had the same problem with gray tiles, even though I had created/verified the API key, and had previously had the map working for some time. Turns out at some point, I edited the manifest file and moved the permissions lines. They apparently need to go BEFORE the application element. Thanks to Alan LaMielle (link) for that solution!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜