I try with google maps application in developer site.
Generate api key and runs it in emulator smooth.
The problem is when I deploy it in real device it shows only grid checks.
I also generate release key and pasted the key in layout mapview.
Whats wrong with that.
Kindly help me with brief explanation.
The only thing I can think of is the data connection. Has the phone got a good reception? Does the Google Maps app work on the phone?
Related
I wrote a simple google maps application the other day, everything should be fine, but it works only on emulator. when I actually export it and run on the phone, the google maps wont load and all I see is just empty grid. any experiences? thx
You need the developer key. Just follow THIS tutorial to get it. It will work only in your computer, you cannot use the key in another computer.
I have created android application that uses Google Maps, ans it works fine here in Palestine(Middle east). When someone try it on UK either on the emulator or on the real device it doesn't show any map!
What is the possible problem ?
Your UK tester doesn't have an Internet connection, or is using a different APK than the one you tested (and therefore you might have a problem with your signing key and Maps API key), or is testing using a device that does not legitimately have Google Maps on it, or something along those lines.
I have to display Google Map in my android app
I followed the tutorial on android.com for this, obtaining MAP API keys & all.
Now the problem is : earlier it was working fine and maps were displayed properly but now since a few days, We cannt see the map. When it launches it shows the markers over it but the background is blank, only the boxes are appearing. Can someone please tell what's happening .
Thanks.
Either:
You have the wrong Maps API key for your signing key, or
The device or emulator does not have Internet access, or
You got rid of the INTERNET permission, or
Something else is blocking your app's access to the Maps servers (e.g., firewall)
i have made an android application and in it , there is one scenario when the user clicks on an address and that address shows up on google maps.
Now when i tested the application on the emulator, the google maps did load properly, but now that i am trying the same on my htc desire z, the maps is not loading.
Although the maps application which came built-in in my phone is loading google maps correctly.
what could be the problem? why is my application not able to load the map view?
thank you in advance.
EDIT: i have obtained a google map api key and have included it in the mapview that i am using.i have added overlays and etc. It is all showing fine on the emulator , but on my device it is not showing any maps. The overlays are visible.
There is a difference between a debug maps API key and a release maps API key. With the first it will only run on the emulator.
Unless you have visited the Google site twice (once to get a key which matches the debug keystore and once to get a key which matches your release keystore) then you haven't got a release key and your app won't run on real device.
Our Android developers were also facing this problem. We solved the problem like this:
We generated API keys from each machine and added the Key to their respective main.xml file. So each developer had a separate api key.
We started the emulator from the command line using the android "emulator" command which is located in the tools directory and started with the proxy option instead of starting it from eclipse, eg :
E:>emulator -avd New_Device -http-proxy http://202.0.0.203:808
Most probably, you didn't register your application into the system. This is the link.
http://code.google.com/android/add-ons/google-apis/maps-api-signup.html
If this is not the case, please provide the error details from Logcat.
You need to get an API key from Google.
Here is a good article that explain how to obtain API key.
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.
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!