vikram deshpande
vikram deshpande

Reputation: 39

Android Map: Map does not show up on Device

I am able 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.

Upvotes: 1

Views: 4748

Answers (4)

owen gerig
owen gerig

Reputation: 6172

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

Upvotes: 3

matadur
matadur

Reputation: 819

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!

Upvotes: 0

CommonsWare
CommonsWare

Reputation: 1006614

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.

Upvotes: 3

David Hedlund
David Hedlund

Reputation: 129792

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

Upvotes: 10

Related Questions