In one of my project I am using Google-map. It is asking the API key, how can I get it? Can I complete the project without that key? All other things are working fine.
Thank you for any help...
If you dont have the api key of google maps your map not load.
You can see this link to create de key and insert it in your project.
you need to create project in google console and enable the credentials there you can create the api key follow this link
https://developers.google.com/maps/documentation/android-api/start?hl=pt-PT#obtain_a_google_maps_api_key
Related
I have create a project which is using Google Map Api. By me all is working good but when someone get my code from GitHub there is a problem with authentication and map isnt showing. How anyone idea what i'm doing wrong? There is the issue from android studio which download the code from githube.
You can try to generate Server Key instead of android key this will help you out and never face this problem with anyone who download your project.This will always help me out.
The generated API Google Maps key is related to the certificate which will be used to sign your Android app
so your colleagues are using their own debug certificate to sign the app after they have checked out the code from github, that is the reason why the maps api key does not fit
So they should create their own api key and you should not check in your api key in you github repo
You can get his Pc id and ganarate a api key for that pc, then add it to your git repository ,, and dont forget to change the key in manifest
I have developed an android app that uses google map ,but when I run the app the map doesn't show anything!!!
I know its a problem with my API key but i can't get it right, here is how i get it:
1) from eclipse >> window >> preferences >> android >> build then i find my SHA1 fingerprint.
2) i go to the google API COnsole and make sure i chose the google maps for android v2 is selected.
3) create new android key and pasete my SHA1 fingerprint and my package name.
please help me :)
you can download my project from link below:
https://www.dropbox.com/s/ppx4iwvpqr3wvq3/android-my-map-location.rar?dl=0
Please refer to this tutorial which has a lot of pictures and graphics in order for you to explain the whole process. Its pretty short and clear.
Hope this Helps!!
You are using Google Maps Android v1 API in your code that has been officially deprecated and you will no longer be able to request an API key for this version. Use this Guide to achieve Google Maps Android v2.
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".
I tried to integrate Google map API with android native application. But I got only grid only, I can't get the map. Please help me to solve this problem.
Grids are shown because your key is not correct.Use the true key for your project which is registered in Google Project Console.
If you are getting only grid instead of the map, usually it's Google Maps Authentication problem. To solve it I would suggest you to go over the following guide:
Google Maps API V2 key
Follow all the steps of the guide and reproduce the key.
Next, follow this guide as well:
Google Maps API V2
to create application that integrates Google Maps API V2. Don't forget to remove the current installed application completely because Google Maps V2 caches the key you used before.
I recently changed my hard drive to my Pc and when I clone my project from github and add the google-play-services as a library I tried to open the google maps and I didn't get any error but nothing shown up. I can see only the zoom buttons and the my location icon. Do I have to regenerate the google-map-api-key for the new ssd?
Yes you need to get your currently generated key from debug.keystore folder and register it via the Google API Console, here is a blog post I wrote on how to do just that:
Generating Google Map API V2 key
Probably you'll have to regenerate your maps API key, as I gues you have a new certificate on your new hard drive. Use keytool to do that, like here:
https://developers.google.com/maps/documentation/android/start#the_google_maps_api_key