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.
Related
I had working code showing my location on a nice little google map. with out changing any map code suddenly the map is completely blank (a grey grey square) thats it..
using google map api for android v2. all set up with an api key and everything.. it was working!
This can happen for a few reasons. Did you sign this version of the application with a different certificate? Are you sure your device has an internet connection? You can also check the logs as Google Maps usually spams a bunch of information about why it is unable to connect. I run into this issue sometimes when my phone is running internet through a proxy, you might want to check that as well.
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 am making an android app in which i am using google maps which are working perfectly in India but the same build is not working in Switzerland i.e. in switzerland the maps are not loading in.
Is ther anything that is country orregion specific in generating google api key or debug.keystore.
Is ther anything that is country orregion specific in generating google api key or debug.keystore.
No. The debug.keystore, by default, is developer-specific. Hence, the Google Map API key is developer-specific. Geography has nothing to do with it.
If this is the same exact APK file being used by both devices, then either:
The Swiss device lacks an Internet connection, or
The Swiss device is having difficulty reaching the Google Maps servers (e.g., they are on WiFi and there is some firewall or proxy issue), or
The Swiss device does not have really have Google Maps (e.g., it is a device with a pirated Maps app and lacks a working Google Maps API add-on for Android), or
The Alps were bulldozed and replaced by large black gridlines, so the map is being shown accurately
The first two should be testable by the user (e.g., try opening the native Maps application or browser). The last one should be testable by having the user look out a window. :-)
If, however, the APK file was built by one developer in India and a different APK file was built by a developer in Switzerland, and the app is working in India, then the Swiss developer needs to supply his or her own Maps API key into the source code, or use the same debug.keystore as is being used by the developer from India.
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.