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.
Related
I have done an application for android , and I used Android Studio , in this app I need to use Google maps, so while I was working i did all that stuff about the API key to use google maps, i was proving my app on my own movile, and there everything works fine, even googlemaps, but when I put my app on the store, i downloaded it from another device, and there google maps does not work. =(
Do you have any idea why does this happen ?
There might be an issue with your API key for map. (ie. Either there is issue in defining package name or SHA key)
Try to re-generate API key with all proper info. and re-build your project.
As we all know, if we want to use google maps api. We can use target:Google apis;
But some rom just my moblie phone that has no google map.
If i use mapActivity it will tell me "class not found".
And it work well in another Phone. (It ensure my code is correct.)
And someone say this problem is with the "framework" missing a file in my Rom.
But when I install Goole map.apk on these phones, the Google maps work fine on them.
I do not know why the google map can run on my phone, but my application will not run on my phone that uses mapAcivity.
try to use Google APIs like a target of your project.
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 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?
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.