Hi i am new to android application development. I did a google map v2 to show my current location using GPS.
It will work fine when i testing with mobile using USB cable
but the issue is when i convert my application into .apk it will retrive my gps current >location but did not show the map
Can anyone help to resolve my problem?
for generation .APK you must have to use keystore & MAP API KEY from same machine. if this two are diffrent from diffrent machine then it 'll heppend.. (mean MAP are not show)
if you have diffrent keystore then you can get MAP API Key from Keystore.
check below links:
How can I get the MD5 fingerprint from Java's keytool, not only SHA-1?
https://stackoverflow.com/a/5262845/1168654
Edited
open this link: follow steps on "Getting the MD5 Fingerprint of the SDK Debug Certificate" then sign up from this link : after that use that map key in you code see what heppend.
This suggests that either you do not have the Google Play Services referenced in the project properly or your device doesn't support it.
Please read the Quick Start on how to properly reference the jar in your project.
Related
Need help , tired of following the tutorials but still no results. I am using android studio and trying to make map app. Tried using the map template in studio as it is just by entering my key bt no matter what i do , i get the same results, blank screen with google log. Google maps console shows zero request from my key to accces maps.
you must add api key, for this need register your application in the Google Developers Console
https://developers.google.com/maps/documentation/android/start
For starters, you need to create a project on Google Devlopers Console.
See this tutorial.
Thank you devs for support but I solved my problem myself by digging whole day , after implementing maps layout activity and manifest and other required files , the app should be build with the keystore provided in android sdk itself instead of our own keystore. keystore path - C/user/{username}/.android/debug.keystore with alias as "androiddebugkey" and password as "android".
Hi I have a problem with Google Map API V2 does not appear when I export my project .apk.
In fact when I do my test sending my Eclipse project via USB everything works, the map is displayed. If I export the project .apk to send to a friend via Gmail and Google Map API V2 is not displayed.
I think this is a problem when exporting but I can not solve it.
If you have answers thank you in advance.
When exporting your app, in the final step the adt(eclipse) shows you the SHA1 key that would be used. Use that SHA1 key value for generating a new google maps api key. Worked for me.
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 :-)
Both in eclipse and when uploaded to Play Store the app just shows the grey grid and the custom markers I added but the actual map is not shown.
I am using the keys from the previous developer before me and the previous versions seem to work on Google Play but when I build it it fails to show the map.
Can anyone help me with this?
Only two reasons this would ever happen:
Your device does not have an internet connection or is otherwise unable to download the map tiles because of a firewall on your network etc.
You are using an API key for the maps library that doesn't match the certificate you are signing the apk with. Remember that Eclipse signs the apk with a debug key, and you use a different key for publishing. See this documentation for details on this.
Google Maps API key is connected to they keystore, you should ask the previous developer for the keystore and export your APK with it. Otherwise, you follow the steps in this post and when you get the MD5 fingerprint you sign up here to get new Google Maps API key.
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.