GoogleMaps - Actual Map not showing - android

I was following this tutorial:
http://www.vogella.com/articles/AndroidLocationAPI/article.html --> Paragraph 6.0
Problem: My emulator runs perfectly fine and everything works good (it zooms and everything), however, the actual map is nothing but a grid. It states that I should be able to send coordinates via the emulator, but how?
Possible Solutions? - Is my API key not correct? Am I not sending the correct coordinates? (I click random numbers and letters)

You're correct. Normally that is a problem with your API key.
https://developers.google.com/android/maps-api-signup
It is getting the coordinates but if it is not generating the map it is a definite api key problem. You did request a key from google right using your java sdk keytool?

You are using de debug.keystore, yo need to use other keystore, with other api key to run maps in a terminal.

Related

Android LBS Services - Emulator doesn't show map

I have made a project which displays the current address of the values of latitude and longitude passed on by emulator control.
I have also constructed a MapView which shows the points on the map as well.
But the problem being that MapView doesn't work even after generating the MD5 fingerprint key nad registering it with google.
I am using emulator - Google API7.
Someone suggest something so that the map shows the co-ordinates on the emulator.
Yeah it won't load the map.
Your gmaps key is generated using your Live API key and when you run the emulator it either uses your debug.keystore or the default eclipse/intellij debug.keystore.
You could generate another google maps api key using your debug.keystore and use this then swap it out at production time.
or test it now with your live keystore, then have faith it'll work when you create your live APK :-)

Empty grey tiles in map

I made an mapActivity with the key that someone gave me. But when I run it, it showed only grey tiles but when I asked them, they said its showing fine there. What could be the problem, why is it not showing here in my side.?
becuase key is generated by other keystore and you need to go here
Sign Up for the Android Maps API - Android Maps API - Google Code
and generate your on Maps API key.
and second option you must sign the app with the same keystore with which was used to create the Map API Key.

Maps not displayed in real device

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?

google maps not loading in my android application

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.

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.
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!

Categories

Resources